diff --git a/docs/kittens/choose-files.rst b/docs/kittens/choose-files.rst index fad6baff9..f3c566314 100644 --- a/docs/kittens/choose-files.rst +++ b/docs/kittens/choose-files.rst @@ -25,20 +25,21 @@ 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 +press :kbd:`Enter`. You can change the current directory by 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:: +chosen in a command line, use, for 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 +terminal I/O and needs exclusive access to the tty device while choosing a file. Creating shortcuts to favorite/frequently used directories