terminal: move between terminal and editor windows #1046
Replies: 1 comment
-
sorry this is slightly embarrassing but I didn't reload my config; also remap is false by default so no need to pass in opts: updated: keys = {
-- terminal
{ "<c-\\>", function() Snacks.terminal.toggle() end, mode = {"n", "t"}, desc = "Toggle Terminal" },
{ "<c-h>", [[<C-\><C-n><C-W>h]], mode = "t", desc = "Window Movement: Move Left" },
{ "<c-j>", [[<C-\><C-n><C-W>j]], mode = "t", desc = "Window Movement: Move Down" },
{ "<c-k>", [[<C-\><C-n><C-W>k]], mode = "t", desc = "Window Movement: Move Up" },
{ "<c-l>", [[<C-\><C-n><C-W>l]], mode = "t", desc = "Window Movement: Move Right" },
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying out snacks.terminal right now, and I'm wondering how to set up keymaps such that you can move outside the snacks terminal window (e.g. say I'm running a program and tested its output on terminal, but I want to go back and edit without hiding terminal window). For toggleterm, which I have used up to this point, I set something like the following:
however replicating them for snacks.terminal like so using the
keys
config option like below doesn't seem to work.Has anyone had a configuration that achieves the desired behavior?
Beta Was this translation helpful? Give feedback.
All reactions