aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-05-22 14:56:39 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-05-22 14:56:39 -0700
commitb84e428a01fd8dd6d0d0679f17ebc89f648f2d1d (patch)
tree55a489137131c6fd644524510c41d4568d8b40f1
parent68cc3ecf33d075e4c3a55cdcc2bf8b1678c2e95e (diff)
Added 'e' for $EDITOR
-rw-r--r--config.def.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index e0ab01a..2956703 100644
--- a/config.def.h
+++ b/config.def.h
@@ -17,7 +17,12 @@ struct {
const char *command;
int flags;
} bindings[] = {
- // User-defined custom scripts go here:
+ ////////////////////////////////////////////////////////////////////////
+ // User-defined custom scripts go here
+ // Please note that these are sh scripts, not bash scripts, so bash-isms
+ // won't work unless you make your script use `bash -c "<your script>"`
+ ////////////////////////////////////////////////////////////////////////
+ {'e', "$EDITOR \"$@\""},
{'L', PIPE_SELECTION_TO "less"},
{'D', "rm -rf \"$@\"", CLEAR_SELECTION | REFRESH | ONSCREEN},
{'d', "rm -rfi \"$@\"", CLEAR_SELECTION | REFRESH | ONSCREEN},