-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib: add nushell completions (#11262)
- Loading branch information
1 parent
dbaa636
commit 6c0a7f6
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Completions for Helix: <https://github.com/helix-editor/helix> | ||
# | ||
# NOTE: the `+N` syntax is not supported in Nushell (https://github.com/nushell/nushell/issues/13418) | ||
# so it has not been specified here and will not be proposed in the autocompletion of Nushell. | ||
# The help message won't be overriden though, so it will still be present here | ||
|
||
def health_categories [] { ["all", "clipboard", "languages"] } | ||
|
||
def grammar_categories [] { ["fetch", "build"] } | ||
|
||
# A post-modern text editor. | ||
export extern hx [ | ||
--help(-h), # Prints help information | ||
--tutor, # Loads the tutorial | ||
--health: string@health_categories = "all", # Checks for potential errors in editor setup | ||
--grammar(-g): string@grammar_categories, # Fetches or builds tree-sitter grammars listed in `languages.toml` | ||
--config(-c): glob, # Specifies a file to use for configuration | ||
-v, # Increases logging verbosity each use for up to 3 times | ||
--log: glob, # Specifies a file to use for logging | ||
--version(-V), # Prints version information | ||
--vsplit, # Splits all given files vertically into different windows | ||
--hsplit, # Splits all given files horizontally into different windows | ||
--working-dir(-w): glob, # Specify an initial working directory | ||
...files: glob, # Sets the input file to use, position can also be specified via file[:row[:col]] | ||
] |