Skip to content

Commit 1dcfa1d

Browse files
committed
Update help, add screenshot
1 parent 967f95f commit 1dcfa1d

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<a href="https://docs.rs/crate/fpick/">docs.rs</a>
1111
</div>
1212

13+
![](./docs/img/screenshot1.png)
14+
1315
## Installation
1416
### Cargo
1517
```sh
@@ -30,22 +32,21 @@ Launch the interactive file picker by running `fpick`.
3032

3133
Navigate with keyboard:
3234

33-
- Up & Down to move between files and directories,
34-
- Left to go up,
35-
- Right to enter a directory.
36-
- Type in the phrase of a filename to filter the list of files
37-
- Enter to select a file, exit and print its path to stdout.
35+
- `` and `` to move between files and directories,
36+
- `` to enter a directory.
37+
- `` to go up,
38+
- Type a phrase to filter the list of files
39+
- `Enter` to select a file, exit and print its path to stdout.
3840

3941
## Examples
4042
You can use it in combination with other commands, for example to print the selected file:
4143
```sh
4244
cat `fpick`
4345
```
4446

45-
Tired of typing `ls` and `cd ...`, over and over again,
47+
Tired of typing `ls` and `cd`, over and over again,
4648
just to find a file in a deeply nested directory tree?
47-
Use `fpick` to navigate through directories interactively.
48-
49+
Use `fpick` to navigate through directories interactively:
4950
```sh
5051
cd `fpick`
5152
```

docs/img/screenshot1.png

27.4 KB
Loading

src/app_logic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ impl App {
1818
std::process::exit(0);
1919
} else if last == "--help" {
2020
println!("fpick - interactive file picker. Usage:");
21-
println!("fpick - to select a file in a current directory and return its path");
22-
println!("fpick <path> - to select a file starting from a specified directory");
23-
println!("fpick --version - to print version");
24-
println!("fpick --help - to print usage");
21+
println!(" `fpick` to select a file in a current directory and return its path");
22+
println!(" `fpick <path>` to select a file starting from a specified directory");
23+
println!(" `fpick --version` to print version");
24+
println!(" `fpick --help` to print usage");
2525
std::process::exit(0);
2626
} else {
2727
self.starting_dir = trim_end_slash(last.to_string());

0 commit comments

Comments
 (0)