diff options
-rwxr-xr-x | dwim | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -107,6 +107,13 @@ for ($phrase) { run @EDITOR, "+$l", $p; } + if (/^ (?:modified: |deleted: )?(\S*)\n/m) { + handle 'git status'; + chdir dir; + my @files = m//mg; + run @OPENER, '-pwith-git -s', 'git', 'add', @files; + } + if (/^(\S+)$/) { handle 'maildir / directory / file'; my $p = path $1; |