laperlej / zellij-sessionizer

MIT License
16 stars 3 forks source link

More keybindings for cycling through search results #11

Open sij1nk opened 2 days ago

sij1nk commented 2 days ago

Hi! Thanks for the plugin, I've been using it briefly and I think it will be a great fit for my workflow.

I'm wondering what you think about providing some additional keybindings for navigating the list of directories shown by the plugin. As a vim user, I'm not very fond of having to reach down for the arrow keys.

I am not familiar with zellij plugin capabilities, so I'm not sure how feasible some of these suggestions are, but these are the ideas I had:


flowchart LR
S@{ shape: dbl-circ, label: "Start" }
    S --- B
    A[Normal mode]-- [i] ---B[Insert mode]
    B-- [Esc] ---A
    A-- [Esc] ---X
    X@{ shape: dbl-circ, label: "Exit" }

Which approach would you prefer? I would be willing to submit a PR for this, but would like to hear your opinion first.

Thanks!

laperlej commented 2 days ago

So first of all, I just want to be clear that the current keybinds are meant to mimick the fzf command line tool and that will remain the default.

However the idea of having configurable keybinds or a vi-mode option is something we can totally add.

I definitely prefer the vim-like modal editing implementation, which users could turn on in the configuration.

sij1nk commented 2 days ago

That makes sense to me. I'll give that a go and get back to you once I get something working