Feature Request: Vim-style keybindings for navigation and interaction
Would be handy use an Vim mode to improve keyboard-based navigation and interaction within sshs. This mode would allow users familiar with Vim to interact with the interface more efficiently and intuitively.
Requested Features:
- j / k: Move selection down / up (navigation)
- l: Connect to the selected host (equivalent to pressing Enter)
- c, i, a: Enter search input mode with behavior similar to Vim (e.g., clear input, insert at cursor, append)
- ESC: Exit input mode and return to navigation mode
- Customizable jj mapping to simulate pressing ESC (like in many Vim plugin environments)
Many popular TUI tools like fzf, ranger, and tmux, provide Vim-style navigation for enhanced usability. Adding such support to sshs would align it with the expectations of power users who live in the terminal.
Thanks for considering this!
Would love to see this as well. This tool is awesome btw :)
Hey π Can you try with one of the artifacts at the bottom of this page?
You can enable Vim mode using --vim
Hey π Can you try with one of the artifacts at the bottom of this page?
You can enable Vim mode using
--vim
Hi! Thanks a lot for implementing Vim mode β Iβve tested it, and overall it works great! Navigation with j/k, connecting with l, and the general modal behavior all feel very intuitive and comfortable. Great job π
I noticed a couple of small issues while testing:
Pressing ESC in visual mode exits the application β I accidentally hit ESC after entering visual mode, and it immediately closed sshs. Not sure if this is intended, but maybe ESC dont should close app?
Pressing c clears the search input but doesn't switch to input mode β I expected it to behave like in Vim: clear the line and enter insert mode. Right now, it just clears the search and leaves me in navigation mode.
Aside from that, everything is really smooth. Thanks again for adding this feature β itβs a big improvement for terminal/Vim users!