diff options
author | DLFW <daniel@llin.info> | 2023-02-17 19:01:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 13:01:42 -0500 |
commit | 4978b4dd819d05364a5323b077e0848ba4fcf857 (patch) | |
tree | 2ed996c52f3f39a530ed9723e92b040037c4dd1f /config | |
parent | 8274a221664705da3e8b885a8c7c74b756bb4dab (diff) |
new_tab can open specific directories (#256)
The `new_tab` command got enhanced and can now open a user-specified
directory, or the directory of the current tab, or the directory
currently highlighted by the cursor.
* `new_tab some-dir` opens new tab with directory `some-dir`
* `new_tab --current` opens new tab with the same directory as the current tab
* `new_tab --cursor` opens new tab with the directory which is currently marked by the cursor
The `keymap.toml` documentation got adapted accordingly.
The default key-map also got enhanced/changed:
* `ctrl-t`: opens tab in default directory
* `shift-t`: opens tab in directory of current tab
* `alt-t`: opens tab in directory marked by cursor
Like before, all new tabs get activated when created. Opening tabs “in
the background” is a possible enhancement for the future and might be
especially useful for the `--cursor` variant.
Diffstat (limited to 'config')
-rw-r--r-- | config/keymap.toml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/keymap.toml b/config/keymap.toml index e3a59be..eb4a894 100644 --- a/config/keymap.toml +++ b/config/keymap.toml @@ -2,8 +2,9 @@ keymap = [ { keys = [ "escape" ], command = "escape" }, - { keys = [ "T" ], command = "new_tab" }, { keys = [ "ctrl+t" ], command = "new_tab" }, + { keys = [ "alt+t" ], command = "new_tab --cursor" }, + { keys = [ "T" ], command = "new_tab --current" }, { keys = [ "W" ], command = "close_tab" }, { keys = [ "ctrl+w" ], command = "close_tab" }, { keys = [ "q" ], command = "close_tab" }, |