mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
choose files: Add default mappings to choose a file and insert it into the terminal
This commit is contained in:
@@ -30,6 +30,17 @@ 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.
|
||||
|
||||
If you want to choose a file and insert it into your shell prompt at the
|
||||
current cursor position, press :sc:`insert_chosen_file` for files or
|
||||
:sc:`insert_chosen_directory` for directories. Similarly, to have a file
|
||||
chosen in a command line, use, or example::
|
||||
|
||||
some-command $(kitten choose-file)
|
||||
|
||||
Note, that the above may not work in a complicated pipeline as it performs
|
||||
terminal I/O and needs exclusive access to the ttyy device while choosing a
|
||||
file.
|
||||
|
||||
Creating shortcuts to favorite/frequently used directories
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user