-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Fish function are not completions #2186
Comments
Note: As a user, to save the functions just do: zellij setup --generate-completion fish > ~/.config/fish/completions/zellij.fish
zellij [Tab] [Ctrl+c]
funcsave zr
funcsave zrf
funcsave ze
funcsave zef This will save each function into its own autoloaded function file in |
Yeah, I'll readily admit I kind of hacked these together in the last minute before the release. So you're suggesting adding a |
I don’t really know. Another possibility is to generate all files and directory structure (possibly in I’m not sure generating multiples aliases is possible in a single file, the way fish works. Or maybe |
zellij can offer the same and all the aliases in the same file: zellij.fish. Thinking again, maybe this can be a good citizen default: not "steal" all the short name and expose the quick functions as Maybe on the "shell integration" doc can propose to do the |
I don't know what would be the fishiest way but one more option how to make the completions and aliases work now is adding:
into |
Effectively if status is-interactive
# Commands to run in interactive sessions can go here
# Skim key bindings
source ~/.config/fish/functions/skim.fish
skim_key_bindings
starship init fish | source
end So this is a possibility, but I prefer |
I thinking having a |
I saw #2650 is trying to fix this :) |
Another thing I noticed (unless it has been already discussed somewhere), in the fish shell,
I.e.,
Edit: it looks like those functions are missing |
Struggling with Erasing the conflicting completion makes
|
Doing
zellij setup --generate-completion fish > ~/.config/fish/completions/zellij.fish
create a lot of nice completions around zellij.I have 2 issues with it:
The completions files are evaluated lazily but some functions are in there
ze
zrf
… They should be in~/.config/fish/functions/zellij.fish
where they will be evaluated more eagerly (so I can useze
without having to dozellij [Tab]
first.=> We need 2 generation commands or 2 outputs. This can be worked around and fixed manually… if the users know all that 😅.
I’m not sure how other shell’s completions are working.
zellij run [Tab]
(andzellij action new-pane [Tab]
, maybe others too) try to complete with local folder instead of commands. I’m not sure it can be addressed, I do not know the fish completion ^^'.The text was updated successfully, but these errors were encountered: