nighthawk 0.2.0

AI terminal autocomplete — zero config, zero login, zero telemetry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
{
  "name": "less",
  "description": "Opposite of more",
  "options": [
    {
      "names": [
        "-?",
        "--help"
      ],
      "description": "This option displays a summary of the commands accepted by less (the same as the h command).  (Depending on how your shell interprets the question mark, it may be necessary to quote the question mark,"
    },
    {
      "names": [
        "-a",
        "--search-skip-screen"
      ],
      "description": "By default, forward searches start at the top of the displayed\nscreen and backwards searches start at the bottom of the\ndisplayed screen (except for repeated searches invoked by the n\nor N commands, w"
    },
    {
      "names": [
        "-A",
        "--SEARCH-SKIP-SCREEN"
      ],
      "description": "Causes all forward searches (not just non-repeated searches) to\nstart just after the target line, and all backward searches to\nstart just before the target line.  Thus, forward searches will\nskip part"
    },
    {
      "names": [
        "-b",
        "--buffers"
      ],
      "description": "Specifies the amount of buffer space less will use for each\nfile, in units of kilobytes (1024 bytes).  By default 64 KB of\nbuffer space is used for each file (unless the file is a pipe;\nsee the -B opt",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "-B",
        "--auto-buffers"
      ],
      "description": "By default, when data is read from a pipe, buffers are allocated\nautomatically as needed.  If a large amount of data is read from\nthe pipe, this can cause a large amount of memory to be\nallocated.  Th"
    },
    {
      "names": [
        "-c",
        "--clear-screen"
      ],
      "description": "Causes full screen repaints to be painted from the top line\ndown.  By default, full screen repaints are done by scrolling\nfrom the bottom of the screen"
    },
    {
      "names": [
        "-C",
        "--CLEAR-SCREEN"
      ],
      "description": "Same as -c, for compatibility with older versions of less"
    },
    {
      "names": [
        "-d",
        "--dumb"
      ],
      "description": "The -d option suppresses the error message normally displayed if\nthe terminal is dumb; that is, lacks some important capability,\nsuch as the ability to clear the screen or scroll backward.  The\n-d opt"
    },
    {
      "names": [
        "-D",
        "--color"
      ],
      "description": "Changes the color of different parts of the displayed text.  x\nis a single character which selects the type of text whose color\nis being set:\nB      Binary characters.\nC      Control characters.\nE    ",
      "takes_arg": true,
      "arg": {
        "name": "xcolor"
      }
    },
    {
      "names": [
        "-e",
        "--quit-at-eof"
      ],
      "description": "Causes less to automatically exit the second time it reaches\nend-of-file.  By default, the only way to exit less is via the\n\"q\" command"
    },
    {
      "names": [
        "-E",
        "--QUIT-AT-EOF"
      ],
      "description": "Causes less to automatically exit the first time it reaches end-\nof-file"
    },
    {
      "names": [
        "-f",
        "--force"
      ],
      "description": "Forces non-regular files to be opened.  (A non-regular file is a\ndirectory or a device special file.)  Also suppresses the\nwarning message when a binary file is opened.  By default, less\nwill refuse t"
    },
    {
      "names": [
        "-F",
        "--quit-if-one-screen"
      ],
      "description": "Causes less to automatically exit if the entire file can be\ndisplayed on the first screen"
    },
    {
      "names": [
        "-g",
        "--hilite-search"
      ],
      "description": "Normally, less will highlight ALL strings which match the last\nsearch command.  The -g option changes this behavior to\nhighlight only the particular string which was found by the last\nsearch command. "
    },
    {
      "names": [
        "-G",
        "--HILITE-SEARCH"
      ],
      "description": "The -G option suppresses all highlighting of strings found by\nsearch commands"
    },
    {
      "names": [
        "-h",
        "--max-back-scroll"
      ],
      "description": "Specifies a maximum number of lines to scroll backward.  If it\nis necessary to scroll backward more than n lines, the screen is\nrepainted in a forward direction instead.  (If the terminal does\nnot hav",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "-i",
        "--ignore-case"
      ],
      "description": "Causes searches to ignore case; that is, uppercase and lowercase\nare considered identical.  This option is ignored if any\nuppercase letters appear in the search pattern; in other words,\nif a pattern c"
    },
    {
      "names": [
        "-I",
        "--IGNORE-CASE"
      ],
      "description": "Like -i, but searches ignore case even if the pattern contains\nuppercase letters"
    },
    {
      "names": [
        "-j",
        "--jump-target"
      ],
      "description": "Specifies a line on the screen where the \"target\" line is to be\npositioned.  The target line is the line specified by any\ncommand to search for a pattern, jump to a line number, jump to\na file percent",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "-J",
        "--status-column"
      ],
      "description": "Displays a status column at the left edge of the screen.  The\nstatus column shows the lines that matched the current search,\nand any lines that are marked (via the m or M command)"
    },
    {
      "names": [
        "-k",
        "--lesskey-file"
      ],
      "description": "Causes less to open and interpret the named file as a lesskey(1)\nfile.  Multiple -k options may be specified.  If the LESSKEY or\nLESSKEY_SYSTEM environment variable is set, or if a lesskey file\nis fou",
      "takes_arg": true,
      "arg": {
        "name": "filename",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-K",
        "--quit-on-intr"
      ],
      "description": "Causes less to exit immediately (with status 2) when an\ninterrupt character (usually ^C) is typed.  Normally, an\ninterrupt character causes less to stop whatever it is doing and\nreturn to its command "
    },
    {
      "names": [
        "-L",
        "--no-lessopen"
      ],
      "description": "Ignore the LESSOPEN environment variable (see the INPUT\nPREPROCESSOR section below).  This option can be set from within\nless, but it will apply only to files opened subsequently, not\nto the file whic"
    },
    {
      "names": [
        "-m",
        "--long-prompt"
      ],
      "description": "Causes less to prompt verbosely (like more), with the percent\ninto the file.  By default, less prompts with a colon"
    },
    {
      "names": [
        "-M",
        "--LONG-PROMPT"
      ],
      "description": "Causes less to prompt even more verbosely than more"
    },
    {
      "names": [
        "-n",
        "--line-numbers"
      ],
      "description": "Suppresses line numbers.  The default (to use line numbers) may\ncause less to run more slowly in some cases, especially with a\nvery large input file.  Suppressing line numbers with the -n\noption will "
    },
    {
      "names": [
        "-N",
        "--LINE-NUMBERS"
      ],
      "description": "Causes a line number to be displayed at the beginning of each\nline in the display"
    },
    {
      "names": [
        "-o",
        "--log-file"
      ],
      "description": "Causes less to copy its input to the named file as it is being\nviewed.  This applies only when the input file is a pipe, not an\nordinary file.  If the file already exists, less will ask for\nconfirmati",
      "takes_arg": true,
      "arg": {
        "name": "filename",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-O",
        "--LOG-FILE"
      ],
      "description": "The -O option is like -o, but it will overwrite an existing file\nwithout asking for confirmation.\nIf no log file has been specified, the -o and -O options can be\nused from within less to specify a log",
      "takes_arg": true,
      "arg": {
        "name": "filename",
        "template": "filepaths"
      }
    },
    {
      "names": [
        "-p",
        "--pattern"
      ],
      "description": "The -p option on the command line is equivalent to specifying\n+/pattern; that is, it tells less to start at the first\noccurrence of pattern in the file",
      "takes_arg": true,
      "arg": {
        "name": "pattern"
      }
    },
    {
      "names": [
        "-P",
        "--prompt"
      ],
      "description": "Provides a way to tailor the three prompt styles to your own\npreference.  This option would normally be put in the LESS\nenvironment variable, rather than being typed in with each less\ncommand.  Such a",
      "takes_arg": true,
      "arg": {
        "name": "prompt"
      }
    },
    {
      "names": [
        "-q",
        "--quiet",
        "--silent"
      ],
      "description": "Causes moderately \"quiet\" operation: the terminal bell is not\nrung if an attempt is made to scroll past the end of the file or\nbefore the beginning of the file.  If the terminal has a \"visual\nbell\", i"
    },
    {
      "names": [
        "-Q",
        "--QUIET",
        "--SILENT"
      ],
      "description": "Causes totally \"quiet\" operation: the terminal bell is never\nrung.  If the terminal has a \"visual bell\", it is used in all\ncases where the terminal bell would have been rung"
    },
    {
      "names": [
        "-r",
        "--raw-control-chars"
      ],
      "description": "Causes \"raw\" control characters to be displayed.  The default is\nto display control characters using the caret notation; for\nexample, a control-A (octal 001) is displayed as \"^A\".  Warning:\nwhen the -"
    },
    {
      "names": [
        "-R",
        "--RAW-CONTROL-CHARS"
      ],
      "description": "Like -r, but only ANSI \"color\" escape sequences and OSC 8\nhyperlink sequences are output in \"raw\" form.  Unlike -r, the\nscreen appearance is maintained correctly, provided that there\nare no escape seq"
    },
    {
      "names": [
        "-s",
        "--squeeze-blank-lines"
      ],
      "description": "Causes consecutive blank lines to be squeezed into a single\nblank line.  This is useful when viewing nroff output"
    },
    {
      "names": [
        "-S",
        "--chop-long-lines"
      ],
      "description": "Causes lines longer than the screen width to be chopped\n(truncated) rather than wrapped.  That is, the portion of a long\nline that does not fit in the screen width is not displayed\nuntil you press RIG"
    },
    {
      "names": [
        "-t",
        "--tag"
      ],
      "description": "The -t option, followed immediately by a TAG, will edit the file\ncontaining that tag.  For this to work, tag information must be\navailable; for example, there may be a file in the current\ndirectory ca",
      "takes_arg": true,
      "arg": {
        "name": "tag"
      }
    },
    {
      "names": [
        "-T",
        "--tag-file"
      ],
      "description": "Specifies a tags file to be used instead of \"tags\"",
      "takes_arg": true,
      "arg": {
        "name": "tagsfile"
      }
    },
    {
      "names": [
        "-u",
        "--underline-special"
      ],
      "description": "Causes backspaces and carriage returns to be treated as\nprintable characters; that is, they are sent to the terminal\nwhen they appear in the input"
    },
    {
      "names": [
        "-U",
        "--UNDERLINE-SPECIAL"
      ],
      "description": "Causes backspaces, tabs, carriage returns and \"formatting\ncharacters\" (as defined by Unicode) to be treated as control\ncharacters; that is, they are handled as specified by the -r\noption.\nBy default, "
    },
    {
      "names": [
        "-V",
        "--version"
      ],
      "description": "Displays the version number of less"
    },
    {
      "names": [
        "-w",
        "--hilite-unread"
      ],
      "description": "Temporarily highlights the first \"new\" line after a forward\nmovement of a full page.  The first \"new\" line is the line\nimmediately following the line previously at the bottom of the\nscreen.  Also high"
    },
    {
      "names": [
        "-W",
        "--HILITE-UNREAD"
      ],
      "description": "Like -w, but temporarily highlights the first new line after any\nforward movement command larger than one line"
    },
    {
      "names": [
        "-x",
        "--tabs="
      ],
      "description": "Sets tab stops.  If only one n is specified, tab stops are set\nat multiples of n.  If multiple values separated by commas are\nspecified, tab stops are set at those positions, and then\ncontinue with th",
      "takes_arg": true,
      "arg": {
        "name": "n,..."
      }
    },
    {
      "names": [
        "-X",
        "--no-init"
      ],
      "description": "Disables sending the termcap initialization and deinitialization\nstrings to the terminal.  This is sometimes desirable if the\ndeinitialization string does something unnecessary, like\nclearing the scre"
    },
    {
      "names": [
        "-y",
        "--max-forw-scroll"
      ],
      "description": "Specifies a maximum number of lines to scroll forward.  If it is\nnecessary to scroll forward more than n lines, the screen is\nrepainted instead.  The -c or -C option may be used to repaint\nfrom the to",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "-z",
        "--window"
      ],
      "description": "Changes the default scrolling window size to n lines.  The\ndefault is one screenful.  The z and w commands can also be used\nto change the window size.  The \"z\" may be omitted for\ncompatibility with so",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    },
    {
      "names": [
        "--quotes"
      ],
      "description": "Changes the filename quoting character.  This may be necessary\nif you are trying to name a file which contains both spaces and\nquote characters.  Followed by a single character, this changes\nthe quote"
    },
    {
      "names": [
        "-~",
        "--tilde"
      ],
      "description": "Normally lines after end of file are displayed as a single tilde\n(~).  This option causes lines after end of file to be displayed\nas blank lines"
    },
    {
      "names": [
        "-#",
        "--shift"
      ],
      "description": "Specifies the default number of positions to scroll horizontally\nin the RIGHTARROW and LEFTARROW commands.  If the number\nspecified is zero, it sets the default number of positions to\none half of the "
    },
    {
      "names": [
        "--follow-name"
      ],
      "description": "Normally, if the input file is renamed while an F command is\nexecuting, less will continue to display the contents of the\noriginal file despite its name change.  If --follow-name is\nspecified, during "
    },
    {
      "names": [
        "--incsearch"
      ],
      "description": "Subsequent search commands will be \"incremental\"; that is, less\nwill advance to the next line containing the search pattern as\neach character of the pattern is typed in"
    },
    {
      "names": [
        "--line-num-width"
      ],
      "description": "Sets the minimum width of the line number field when the -N\noption is in effect.  The default is 7 characters"
    },
    {
      "names": [
        "--mouse"
      ],
      "description": "Enables mouse input: scrolling the mouse wheel down moves\nforward in the file, scrolling the mouse wheel up moves\nbackwards in the file, and clicking the mouse sets the \"#\" mark\nto the line where the "
    },
    {
      "names": [
        "--MOUSE"
      ],
      "description": "Like --mouse, except the direction scrolled on mouse wheel\nmovement is reversed"
    },
    {
      "names": [
        "--no-keypad"
      ],
      "description": "Disables sending the keypad initialization and deinitialization\nstrings to the terminal.  This is sometimes useful if the keypad\nstrings make the numeric keypad behave in an undesirable manner"
    },
    {
      "names": [
        "--no-histdups"
      ],
      "description": "This option changes the behavior so that if a search string or\nfile name is typed in, and the same string is already in the\nhistory list, the existing copy is removed from the history list\nbefore the "
    },
    {
      "names": [
        "--rscroll"
      ],
      "description": "This option changes the character used to mark truncated lines.\nIt may begin with a two-character attribute indicator like\nLESSBINFMT does.  If there is no attribute indicator, standout\nis used.  If s"
    },
    {
      "names": [
        "--save-marks"
      ],
      "description": "Save marks in the history file, so marks are retained across\ndifferent invocations of less"
    },
    {
      "names": [
        "--status-col-width"
      ],
      "description": "Sets the width of the status column when the -J option is in\neffect.  The default is 2 characters"
    },
    {
      "names": [
        "--use-backslash"
      ],
      "description": "This option changes the interpretations of options which follow\nthis one.  After the --use-backslash option, any backslash in an\noption string is removed and the following character is taken\nliterally"
    },
    {
      "names": [
        "--use-color"
      ],
      "description": "Enables the colored text in various places.  The -D option can\nbe used to change the colors.  Colored text works only if the\nterminal supports ANSI color escape sequences (as defined in\nECMA-48 SGR; s"
    },
    {
      "names": [
        "--wheel-lines"
      ],
      "description": "Set the number of lines to scroll when the mouse wheel is rolled",
      "takes_arg": true,
      "arg": {
        "name": "n"
      }
    }
  ],
  "args": [
    {
      "is_variadic": true,
      "template": "filepaths"
    }
  ]
}