Skip to content

Commit c0eef9b

Browse files
authored
Remove incorrect less subcommand definition (#1200)
Fixes #1199 The `less` completions currently include a subcommand `"less 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19"`. This subcommand definition has all the same flags as the definition for `less` (expect for `--shift`). This subcommand exists because these completions were generated from the [Fish ones](https://github.com/fish-shell/fish-shell/tree/master/share/completions/less.fish), and for some reason, the Fish completions add arguments like `1 2 3 ...` to some of the `less` commands. This PR just gets rid of that subcommand.
1 parent 1cb6d6c commit c0eef9b

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

custom-completions/less/less-completions.nu

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,45 +41,3 @@ extern "less" [
4141
# --shift(-#) # Characters to scroll on left/right arrows
4242
...args
4343
]
44-
45-
# Characters to scroll on left/right arrows
46-
extern "less 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19" [
47-
--help(-?) # Display help and exit
48-
--search-skip-screen(-a) # Search after end of screen
49-
--auto-buffers(-B) # Disable automatic buffer allocation
50-
--clear-screen(-c) # Repaint from top
51-
--CLEAR-SCREEN(-C) # Clear and repaint from top
52-
--dumb(-d) # Suppress error for lacking terminal capability
53-
--quit-at-eof(-e) # Exit on second EOF
54-
--QUIT-AT-EOF(-E) # Exit on EOF
55-
--force(-f) # Open non-regular files
56-
--quit-if-one-screen(-F) # Quit if file shorter than one screen
57-
--hilite-search(-g) # Highlight one search target
58-
--HILITE-SEARCH(-G) # No search highlighting
59-
--ignore-case(-i) # Search ignores lowercase case
60-
--IGNORE-CASE(-I) # Search ignores all case
61-
--status-column(-J) # Display status column
62-
--no-lessopen(-L) # Ignore $LESSOPEN
63-
--long-prompt(-m) # Prompt with percentage
64-
--LONG-PROMPT(-M) # Verbose prompt
65-
--line-numbers(-n) # Display line number
66-
--LINE-NUMBERS(-N) # Display line number for each line
67-
--quiet(-q) # Silent mode
68-
--silent # Silent mode
69-
--QUIET(-Q) # Completely silent mode
70-
--SILENT # Completely silent mode
71-
--raw-control-chars(-r) # Display control chars
72-
--RAW-CONTROL-CHARS(-R) # Display control chars, guess screen appearance
73-
--squeeze-blank-lines(-s) # Multiple blank lines sqeezed
74-
--chop-long-lines(-S) # Do not fold long lines
75-
--underline-special(-u) # Allow backspace and carriage return
76-
--UNDERLINE-SPECIAL(-U) # Allow backspace, tab and carriage return
77-
--version(-V) # Display version and exit
78-
--hilite-unread(-w) # Highlight first unread line on new page
79-
--HILITE-UNREAD(-W) # Highlight first unread line on any movement
80-
--no-init(-X) # No termcap init
81-
--no-keypad # No keypad init
82-
--tilde(-~) # Lines after EOF are blank
83-
# --shift(-#) # Characters to scroll on left/right arrows
84-
...args
85-
]

0 commit comments

Comments
 (0)