Kovid Goyal
d052b020fa
Check for dirs when getting mimetypes in a couple more places
2021-07-16 21:49:02 +05:30
Kovid Goyal
cf5ed54c84
Dont add formatting escape codes to completion descriptions in ZSH
...
ZSH gets confused by them, causes the text to move up a line when
completing after the first line
2021-07-11 21:46:17 +05:30
Kovid Goyal
b813e1f7ab
...
2021-07-11 21:39:54 +05:30
Kovid Goyal
cdd8e52116
DRYer
2021-07-11 21:39:08 +05:30
Kovid Goyal
6945eb4186
Better complete debug function
2021-07-11 21:33:19 +05:30
Kovid Goyal
051374cd55
Add support for comma separated completions
2021-06-26 10:52:14 +05:30
Kovid Goyal
71cd92da29
Store match group properties on the match group object
2021-06-26 09:47:21 +05:30
Kovid Goyal
9e2d67f7a1
Show option descriptions when completing in ZSH
2021-06-25 19:13:16 +05:30
Kovid Goyal
23ea3745ca
Make zsh completion headings bold
2021-06-25 18:05:18 +05:30
Kovid Goyal
d8d5a8fada
More work on completion for the SSH kitten
2021-06-25 17:50:08 +05:30
Kovid Goyal
fc99d4d757
Specify the type of files to make mypy happy (I hope)
2021-06-09 08:24:36 +05:30
Kovid Goyal
23b8cafc41
Add layout name completion to @ goto-layout
2021-05-15 10:25:34 +05:30
Kovid Goyal
fe07306ff1
Use a nicer decorator for functions that only need to be run once
2021-02-05 10:40:52 +05:30
Kovid Goyal
75a94bcd96
Improving MIME type detection for some common file types when they are missing from the system MIME database
...
Also allow the user to specify their own database via mime.types in the
kitty config directory. See #3056
2020-10-25 13:42:11 +05:30
Kovid Goyal
392c31f5fe
Allow specifying watchers in session files and via a command line argument
2020-08-23 10:41:36 +05:30
Kovid Goyal
6e13509720
Allow entry points and external command combined completion on first word
2020-03-30 11:38:54 +05:30
Kovid Goyal
5b4844e71e
oops
...
Broke normal completion in previous commit. Delegate should only be used
when actual unknown words are present
2020-03-30 11:12:00 +05:30
Kovid Goyal
66cbbea9bb
Add completion for executables at kitty invocation in zsh
...
So now kitty vi<TAB> and kitty vim something<TAB> delegate
completion to zsh for the command that will be executed inside kitty.
2020-03-30 10:54:17 +05:30
Kovid Goyal
cda1e28b32
more typing work
2020-03-12 13:51:51 +05:30
Luflosi
6d1fd20542
Add #compdef comment to zsh completion
...
This will allow adding completions without using `kitty + complete setup zsh | source /dev/stdin` by piping the code into a file named `_kitty` in a directory in `$fpath` instead of piping to `source`. This is especially handy for package managers that package kitty.
See https://github.com/zsh-users/zsh-completions/blob/master/zsh-completions-howto.org .
The `compdef _kitty kitty` line at the end doesn't seem to have any ill effects when using the completion code in a completion function file. When piping the code to `source` like before, the added line should be interpreted as a comment and be ignored.
2020-03-10 20:48:43 +01:00
Kovid Goyal
92827ae647
More typing work
2020-03-09 09:56:37 +05:30
Kovid Goyal
cc1336a616
More typing work
...
Also use a mypy based linter when editing
2020-03-08 11:02:14 +05:30
Kovid Goyal
9b32f18109
Refactor remote control commands into individual modules
...
Also add type information
2020-03-08 08:39:26 +05:30
Kovid Goyal
226488717a
Add completion for image filenames at command line
...
Sadly could not get it to work with the shell
2020-02-01 12:33:11 +05:30
Luflosi
9a8f0a9b5a
Fix typo
2019-10-17 13:56:46 +02:00
Kovid Goyal
40ce5db812
Add completion for listen on
2019-09-22 16:08:37 +05:30
Kovid Goyal
649a9f4a6f
oops
2019-09-22 16:01:33 +05:30
Kovid Goyal
e17ce875be
Complete more CLI args
2019-09-22 16:01:12 +05:30
Kovid Goyal
415701c58a
Add completion of filenames for --config
2019-09-22 15:52:45 +05:30
Kovid Goyal
c84e73d8e6
Add some docs for how the completion system can be extended for a new shell
2019-06-29 07:56:24 +05:30
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Dominique Martinet
5bdcfbc2ce
bash completion: make complete helper start with _
...
It is standard to start complete helpers with underscore to avoid
clobbering the function namespace ; like other shells do.
It is ironic for a completion helper to make completion less agreable...
2018-09-18 09:10:47 +09:00
Edward Betts
5eaeda4402
Correct spelling mistakes.
2018-09-06 12:07:09 +01:00
Kovid Goyal
b3db3e5732
Fix completion of paths with spaces
2018-09-06 09:47:36 +05:30
Kovid Goyal
b45161ecc3
zsh completion: Eliminate common prefix when completing file names
2018-09-06 09:46:04 +05:30
Kovid Goyal
d4fc0af7de
Cleanup up path completions
2018-09-06 09:34:25 +05:30
Kovid Goyal
5ef8cce1d7
Fix filenames not being completed for the diff kitten
2018-09-06 07:50:07 +05:30
Pablo S. Blum de Aguiar
1b7244f3c8
Completion for fish
2018-09-05 22:33:39 +02:00
Kovid Goyal
0c1b76c17a
Fix completion of kitten names not working
2018-08-27 13:23:17 +05:30
Kovid Goyal
bbefcb2cd2
Fix spaces after file/dir names and config directive names in bash completion
...
Since bash has no concept of completion groups with customizable
behavior, unlike zsh, we tell it to never add trailing spaces and
add the spaces ourselves.
2018-08-26 18:22:40 +05:30
Kovid Goyal
c864cba4a2
Completion of image names for the icat kitten
2018-08-26 11:49:56 +05:30
Kovid Goyal
42546f4371
Implement completion for the kitty command
...
Implemented for bash and zsh. Completion scripts are just thin wrappers
around kitty + complete which knows how to complete kitty command lines.
Should make it easy to add completion for other shells in the future.
2018-08-26 10:39:51 +05:30
Kovid Goyal
ff09bdcbf1
Completion for kittens
2018-08-26 09:42:26 +05:30
Kovid Goyal
f36a9fffa3
Completion for bash
2018-08-26 09:16:02 +05:30
Kovid Goyal
933cced76c
Implement completion for remote control commands
2018-08-25 14:51:59 +05:30
Kovid Goyal
c51e7d3bde
More work on completions
2018-08-25 11:27:22 +05:30
Kovid Goyal
d3b31224cd
More work on completions
2018-08-24 12:15:27 +05:30
Kovid Goyal
0e0e25f986
Avoid double filter for completions in zsh
2018-08-24 08:13:59 +05:30
Kovid Goyal
8b02b89bd6
Add an is_focused field to the output of kitty @ ls
2018-08-23 16:07:26 +05:30
Kovid Goyal
8ba3c4ba50
Group completion matches
2018-08-23 15:34:54 +05:30