Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Session Selection with Prefix Matching and Fuzzy Finder #3375

Open
frolvanya opened this issue May 24, 2024 · 2 comments
Open

Enhance Session Selection with Prefix Matching and Fuzzy Finder #3375

frolvanya opened this issue May 24, 2024 · 2 comments

Comments

@frolvanya
Copy link

frolvanya commented May 24, 2024

Instead of typing zellij a session-name, wouldn't it be better to use zellij a se (using just the first few characters)? If there are multiple names starting with the same prefix, we could then open fzf for selection:

$ zellij ls
session-1
session-2
main
$ zellij a se
> session-1
  session-2
# ideally empty matching string should result in fzf $(zellij ls)
# also, it should work only if we don't have any active sessions and we're looking to resurrect one
$ zellij a
> session-1
  session-2
  main
@imsnif
Copy link
Member

imsnif commented May 24, 2024

You might be interested in the welcome-screen and/or the session-manager. They have this functionality (also with filtering your fuzzy found selection in real time in a list) built-in. You can check out this screencast for more info: https://zellij.dev/tutorials/session-management/

@DerTimonius
Copy link

If you already have fzf installed, you could create an alias to do something like what you suggest:

zellij attach $(zellij ls -s | fzf)

I use the following alias:

alias zat='zellij attach $(zellij ls -s | fzf)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants