diff options
author | Canop <cano.petrole@gmail.com> | 2019-02-03 21:06:55 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2019-02-03 21:06:55 +0100 |
commit | 71e1021364b24c3b78a870465d0e3c140c8edab1 (patch) | |
tree | 213ea2d4f263946d3a360ee9d6b90ca75d76f4ed | |
parent | 8d29a5df3991279ae8b5f0ad3d12d3e0402ef1e9 (diff) |
mention alt-enter in readme and documentationv0.5.1
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | documentation.md | 4 |
3 files changed, 8 insertions, 4 deletions
@@ -8,3 +8,5 @@ notes.md **/*.rs.bk perf.data* *.pl +off + @@ -27,7 +27,7 @@ Most useful keys for this: * the letters of what you're looking for * `<enter>` to select a directory (staying in broot) * `<esc>` to get back to the previous state or clear your search -* `:c` to get back to the shell having `cd` to the selected directory ([see below](#use-broot-for-navigation)) +* `<alt><enter>` to get back to the shell having `cd` to the selected directory ([see below](#use-broot-for-navigation)) * `:q` if you just want to quit (`<esc>` works too) ### Never lose track of file hierarchy while you fuzzy search: @@ -81,7 +81,7 @@ The executable is written in the `target/release` directory (you might want to m ## cd -broot is convenient to find a directory then `cd` to it. The `c` command of the default configuration is here for this purpose. +broot is convenient to find a directory then `cd` to it, which is done using `<alt><enter>` or `:cd`. But broot needs a companion function in the shell in order to be able to change directory. To enable this feature, add this to your `.bashrc` (or the relevant file for another shell): @@ -113,7 +113,7 @@ But broot needs a companion function in the shell in order to be able to change (you'll have to source the file or open a new terminal) -With this addition, you can do just `br` to launch broot, and typing `:c` then *enter* will cd for you. You can search and change directory in one command: `mylosthing:c`. +With this addition, you can do just `br` to launch broot, and typing `<alt><enter>` will cd for you. ## Development diff --git a/documentation.md b/documentation.md index e994b19..5389b3b 100644 --- a/documentation.md +++ b/documentation.md @@ -62,7 +62,9 @@ This is normally achieved with the `esc` key but you might want to remap it. `:cd` is the most useful verb but only works if you're using the [shell integration](README.md#use-broot-for-navigation). -In the default configuration it's mapped to `c`. +If you call it on a simple file, instead of a directory, the shell will be directed to the parent direcory. + +It's mapped to `<alt><enter>`. ### `:focus` : change the tree's root |