Commit Graph
38 Commits
Author SHA1 Message Date
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
Kovid Goyal 16764c79b2 Start work on completion for the kitty command 2018-08-23 15:10:13 +05:30