diff options
Diffstat (limited to 'modules/daffm.home/config/config.kak.toml')
| -rw-r--r-- | modules/daffm.home/config/config.kak.toml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/daffm.home/config/config.kak.toml b/modules/daffm.home/config/config.kak.toml new file mode 100644 index 0000000..3fba99a --- /dev/null +++ b/modules/daffm.home/config/config.kak.toml @@ -0,0 +1,20 @@ +opener = """ +echo "$files" | while IFS= read file; do + kcr edit "$file" +done +""" +extend = "@" + +[keymap] +l = "open-and-quit" +"<cr>" = "open-and-quit" + +"~" = """eval + echo "<daffm>cd '${DAFFM_PATH_RELATIVE_TO:-$PWD}'" +""" + +[commands] +open-and-quit = [ + """eval [ -d "$cursor" ] || echo '<daffm>quit' """, + "open" +] |
