choose files: Add default mappings to choose a file and insert it into the terminal

This commit is contained in:
Kovid Goyal
2025-11-23 11:41:21 +05:30
parent 29d2796692
commit 37da04aad6
7 changed files with 79 additions and 15 deletions

View File

@@ -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
------------------------------------------------------------