omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
711 stars 63 forks source link

Question/feature request #126

Open newvladimirov opened 2 months ago

newvladimirov commented 2 months ago

Hi! Thanks for your great plugin!

is it possible to start sessionx in the some sort of vim normal mode? Similar to telescope.nvim initial_mode = "normal", option. In other words i want to open up the sessionx popup and navigate using j and k, and switch to insert mode only after pressing i.

omerxx commented 1 week ago

Hey! So basically, there's no "normal" mode in fzf AFAIK. What I can do is add a switch and have this added using that:

    --bind 'j:down' 
    --bind 'k:up' 
    --bind 'i:enable-search+unbind(j)+unbind(k)+unbind(i)'

Essentially binding your j,k to up and down and then hitting i again to "go into insert mode" which just unbinds jk back.

Would that do it?