-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'helix-editor:master' into command-expansion
- Loading branch information
Showing
32 changed files
with
599 additions
and
388 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
#!/usr/bin/env fish | ||
# Fish completion script for Helix editor | ||
|
||
set -l langs (hx --health |tail -n '+7' |awk '{print $1}' |sed 's/\x1b\[[0-9;]*m//g') | ||
|
||
complete -c hx -s h -l help -d "Prints help information" | ||
complete -c hx -l tutor -d "Loads the tutorial" | ||
complete -c hx -l health -x -a "$langs" -d "Checks for errors in editor setup" | ||
complete -c hx -s g -l grammar -x -a "fetch build" -d "Fetches or builds tree-sitter grammars" | ||
complete -c hx -l health -xa "(__hx_langs_ops)" -d "Checks for errors" | ||
complete -c hx -s g -l grammar -x -a "fetch build" -d "Fetch or build tree-sitter grammars" | ||
complete -c hx -s v -o vv -o vvv -d "Increases logging verbosity" | ||
complete -c hx -s V -l version -d "Prints version information" | ||
complete -c hx -l vsplit -d "Splits all given files vertically into different windows" | ||
complete -c hx -l hsplit -d "Splits all given files horizontally into different windows" | ||
complete -c hx -s c -l config -r -d "Specifies a file to use for completion" | ||
complete -c hx -l log -r -d "Specifies a file to write log data into" | ||
complete -c hx -l vsplit -d "Splits all given files vertically" | ||
complete -c hx -l hsplit -d "Splits all given files horizontally" | ||
complete -c hx -s c -l config -r -d "Specifies a file to use for config" | ||
complete -c hx -l log -r -d "Specifies a file to use for logging" | ||
complete -c hx -s w -l working-dir -d "Specify initial working directory" -xa "(__fish_complete_directories)" | ||
|
||
function __hx_langs_ops | ||
hx --health languages | tail -n '+2' | string replace -fr '^(\S+) .*' '$1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.