mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-03 02:11:07 +05:30
feat: wire batch media converter and document compare, remove coming-soon stubs
- batch.showConverter: open BatchMediaConverterDialog for image/audio/video types (uses existing universal-convert-batch handler with ImageMagick/FFmpeg) - tools.documentCompare: line-by-line diff of two open tabs with confirmation dialog, shows diff count in toast and full diff in console - No more 'coming soon' toasts for any menu item
This commit is contained in:
@@ -12,10 +12,14 @@ async function getStatus(dir) {
|
||||
for (const [filePath, status] of Object.entries(result.files || {})) {
|
||||
files.push({
|
||||
filePath,
|
||||
status: status.working_dir === 'M' ? 'modified'
|
||||
: status.working_dir === 'A' || status.index === 'A' ? 'added'
|
||||
: status.working_dir === 'D' || status.index === 'D' ? 'deleted'
|
||||
: 'untracked',
|
||||
status:
|
||||
status.working_dir === 'M'
|
||||
? 'modified'
|
||||
: status.working_dir === 'A' || status.index === 'A'
|
||||
? 'added'
|
||||
: status.working_dir === 'D' || status.index === 'D'
|
||||
? 'deleted'
|
||||
: 'untracked',
|
||||
});
|
||||
}
|
||||
return { files };
|
||||
@@ -33,7 +37,14 @@ async function stage(dir, files) {
|
||||
for (const [filePath, status] of Object.entries(result.files || {})) {
|
||||
staged.push({
|
||||
filePath,
|
||||
status: status.index === 'A' ? 'added' : status.index === 'M' ? 'modified' : status.index === 'D' ? 'deleted' : 'untracked',
|
||||
status:
|
||||
status.index === 'A'
|
||||
? 'added'
|
||||
: status.index === 'M'
|
||||
? 'modified'
|
||||
: status.index === 'D'
|
||||
? 'deleted'
|
||||
: 'untracked',
|
||||
});
|
||||
}
|
||||
return { files: staged };
|
||||
|
||||
Reference in New Issue
Block a user