dj95 / zjstatus

A configurable statusbar plugin for zellij
MIT License
358 stars 6 forks source link

New widget: Search #60

Closed tranzystorekk closed 1 month ago

tranzystorekk commented 1 month ago

Is your feature request related to a problem? Please describe.

Using zellij's search utility gets harder with pane frames hidden, because the search term is no longer visible.

Describe the solution you'd like

I imagine a widget that appears in search mode and shows the search term - maybe with looks inspired from vim's backward search command: ?<search_term>.

dj95 commented 1 month ago

Thanks a lot for your feature request!

Unfortunately, I don't find a way to catch the search term from zellij. However, I implemented some logic for the pane frames, such that they are toggle when in search mode or when renaming a pane.

Additionally I added a feature for the tab widget, which makes it easier to rename them as you see the input and are able to theme the state additionally.

Screenshot 2024-05-25 at 11 32 32

Does this suite your feature request?

tranzystorekk commented 1 month ago

Yeah, that sounds like a good solution as well, thanks for taking the time!

tranzystorekk commented 1 month ago

Built and tested https://github.com/dj95/zjstatus/commit/c186c82cad5dac26c0a2214a9fc89c5ff2c4f112, works really nice!

dj95 commented 1 month ago

Great! I'll then close this issue, as it will be released with the next releases.