summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2019-02-03 21:06:55 +0100
committerCanop <cano.petrole@gmail.com>2019-02-03 21:06:55 +0100
commit71e1021364b24c3b78a870465d0e3c140c8edab1 (patch)
tree213ea2d4f263946d3a360ee9d6b90ca75d76f4ed
parent8d29a5df3991279ae8b5f0ad3d12d3e0402ef1e9 (diff)
mention alt-enter in readme and documentationv0.5.1
-rw-r--r--.gitignore2
-rw-r--r--README.md6
-rw-r--r--documentation.md4
3 files changed, 8 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 666bcbf..c0a3d16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,5 @@ notes.md
**/*.rs.bk
perf.data*
*.pl
+off
+
diff --git a/README.md b/README.md
index d11589e..b839b65 100644
--- a/README.md
+++ b/README.md
@@ -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