summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-06-26 08:52:18 +0200
committerCanop <cano.petrole@gmail.com>2020-06-26 08:52:18 +0200
commiteb0ce4ff218f1d9a84d91e342173e4bbdb3e909e (patch)
treed89d4f8a54c8da3d581403f272f83231a578e2f9
parent1ab38d3bf03fb32770963868264610abbdafab2b (diff)
update help screen content
It was full of obsolete things...
-rw-r--r--src/help/help_content.rs10
-rw-r--r--website/docs/index.md2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/help/help_content.rs b/src/help/help_content.rs
index aa16a9b..9076ecb 100644
--- a/src/help/help_content.rs
+++ b/src/help/help_content.rs
@@ -13,7 +13,8 @@ See **https://dystroy.org/broot** for a complete guide.
The *esc* key gets you back to the previous state.
Typing some letters searches the tree and selects the most relevant file.
-To use a regular expression, use a slash at start or end eg `/j(ava|s)$`.
+To use a regular expression, prefix with a slash eg `/j(ava|s)$`.
+To search by file content, prefix with `c/` eg `c/TODO`.
The *↑* and *↓* arrow keys can be used to change selection.
The mouse can be used to select (on click) or open (on double-click).
@@ -36,17 +37,16 @@ Verbs and skin can be configured in **${config-path}**.
Some options can be set on launch:
* `-h` or `--hidden` : show hidden files
-* `-f` or `--only-folders` : only show folders
-* `-s` or `--sizes` : display sizes
+* `-i` : show files which are normally hidden due to .gitignore rules
* `-d` or `--dates` : display last modified dates
+* `-w` : whale-spotting mode
(for the complete list, run `broot --help`)
## Flags
Flags are displayed at bottom right:
* `h:y` or `h:n` : whether hidden files are shown
-* `gi:a`, `gi:y`, `gi:n` : whether gitignore is on `auto`, `yes` or `no`
- When gitignore is auto, .gitignore rules are respected if the displayed root is a git repository or in one.
+* `gi:y`, `gi:n` : whether gitignore rules are active or not
"#;
/// build the markdown which will be displayed in the help page
diff --git a/website/docs/index.md b/website/docs/index.md
index f3a18b9..0971c78 100644
--- a/website/docs/index.md
+++ b/website/docs/index.md
@@ -114,7 +114,7 @@ Sizes, dates, files counts, are computed in the background, you don't have to wa
Use `:gf` to display the statuses of files (what are the new ones, the modified ones, etc.), the current branch name and the change statistics.
-And if you want to see *only* the files which would be displayed by the `git status` command, do `:gs`.
+And if you want to see *only* the files which would be displayed by the `git status` command, do `:gs`. From there it's easy to edit, or diff, selected files.
# More...