aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdwim7
1 files changed, 7 insertions, 0 deletions
diff --git a/dwim b/dwim
index 5ace0a6..1b6b443 100755
--- a/dwim
+++ b/dwim
@@ -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;