zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.37k stars 649 forks source link

tab completion for delete-session #3055

Open benzwt opened 9 months ago

benzwt commented 9 months ago

It would be nice to be able to delete-session powered with tab-completion. Just like removing stopped containers with docker rm .

For example,

zellij ls

inventive-elephant [Created 7h 10m 22s ago]

zellij d inven + \\ will give

sellij d inventive-elephant
cristiand391 commented 9 months ago

I think if you use fish you get sesion completinon (haven't tried it): https://github.com/zellij-org/zellij/blob/main/zellij-utils/assets/completions/comp.fish

don't see anything for zsh/bash (I think native shell completion gets generated by clap, if so clap should support dynamic completion).

for zsh I wrote a custom completion script using fzf's completion API: Screencast from 01-13-2024 01:03:32 AM.webm

d4rkb4sh8 commented 9 months ago

use ble.sh here on github for bash shell. it rocks for completions and also oh-my-bash does everything else and also includes command prompt customizations, plugins, aliases, completions etc. No need for fish or zsh. good ol bash for everything.