mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Basic documentation for the choose files kitten
This commit is contained in:
@@ -25,6 +25,35 @@ Simply run it as::
|
||||
kitten choose-files
|
||||
|
||||
to select a single file from the tree rooted at the current working directory.
|
||||
Type a few letters from the filename and once it becomes the top selection,
|
||||
press :kbd:`Enter`. You can change the current directory by instead selecting a
|
||||
directory and pressing the :kbd:`Tab` key. :kbd:`Shift+Tab` goes up one
|
||||
directory level.
|
||||
|
||||
Creating shortcuts to favorite/frequently used directories
|
||||
------------------------------------------------------------
|
||||
|
||||
You can create keyboard shortcuts to quickly switch to any directory in
|
||||
:file:`choose-files.conf`. For example:
|
||||
|
||||
.. code-block:: conf
|
||||
|
||||
map ctrl+t cd /tmp
|
||||
map alt+p cd ~/my/project
|
||||
|
||||
Selecting multiple files
|
||||
-----------------------------
|
||||
|
||||
When you wish to select multiple files, start the kitten with :option:`--mode
|
||||
<kitty +kitten choose_files --mode>`:code:`=files`. Then instead of pressing
|
||||
:kbd:`Enter`, press :kbd:`Shift+Enter` instead and the file will be added to the list
|
||||
of selections. You can also hold the :kbd:`Ctrl` key and click on files to add
|
||||
them to the selections. Similarly, you can hold the :kbd:`Alt` key and click to
|
||||
select ranges of files (similar to using :kbd:`Shift+click` in a GUI app).
|
||||
Press :kbd:`Enter` on the last selected file to finish. The list of selected
|
||||
files is displayed at the bottom of the kitten and you can click on them
|
||||
to deselect a file. Similarly, pressing :kbd:`Shift+Enter` will un-select a
|
||||
previously selected file.
|
||||
|
||||
Configuration
|
||||
------------------------
|
||||
|
||||
Reference in New Issue
Block a user