mirror of
https://github.com/denisidoro/navi.git
synced 2026-01-23 02:14:19 +00:00
Moved parts around and updated the TOC
Signed-off-by: alexis-opolka <53085471+alexis-opolka@users.noreply.github.com>
This commit is contained in:
parent
f7669ced21
commit
790aed326b
3 changed files with 26 additions and 31 deletions
|
|
@ -89,31 +89,6 @@ cheats:
|
|||
|
||||
The directive is now deprecated and will be removed in `2.27.0`.
|
||||
|
||||
#### Defining the cheatsheets path at runtime
|
||||
|
||||
You can define the paths to use for cheatsheets at runtime using the `--path` parameter and a colon-separated paths list
|
||||
|
||||
For example, if we want to search for cheatsheets in `/some/dir` and in `/other/dir`:
|
||||
|
||||
```sh
|
||||
navi --path '/some/dir:/other/dir'
|
||||
```
|
||||
|
||||
## Logging
|
||||
|
||||
The log file will be created under the same directory where the configuration file is located.\
|
||||
You can use the `RUST_LOG` environment variable to set the log level.
|
||||
|
||||
For example, to have the logging in debug mode when running navi:
|
||||
|
||||
```bash
|
||||
RUST_LOG=debug navi
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> If the directory of the configuration file doesn't exist, no log file
|
||||
> is going to be created.
|
||||
|
||||
## Customization
|
||||
|
||||
### Changing colors
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
|
||||
#### Defining the cheatsheets path at runtime
|
||||
|
||||
You can define the paths to use for cheatsheets at runtime using the `--path` parameter and a colon-separated paths list
|
||||
|
||||
For example, if we want to search for cheatsheets in `/some/dir` and in `/other/dir`:
|
||||
|
||||
```sh
|
||||
navi --path '/some/dir:/other/dir'
|
||||
```
|
||||
|
||||
## Logging
|
||||
|
||||
The log file will be created under the same directory where the configuration file is located.\
|
||||
You can use the `RUST_LOG` environment variable to set the log level.
|
||||
|
||||
For example, to have the logging in debug mode when running navi:
|
||||
|
||||
```bash
|
||||
RUST_LOG=debug navi
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> If the directory of the configuration file doesn't exist, no log file
|
||||
> is going to be created.
|
||||
|
|
@ -2,15 +2,9 @@
|
|||
# if you want to override only when selecting snippets
|
||||
navi --fzf-overrides '--height 3'
|
||||
|
||||
# alternatively, using an environment variable in your .bashrc-like file:
|
||||
export NAVI_FZF_OVERRIDES='--height 3'
|
||||
|
||||
# if you want to override only when selecting argument values
|
||||
navi --fzf-overrides-var '--height 3'
|
||||
|
||||
# alternatively, using an environment variable in your .bashrc-like file:
|
||||
export NAVI_FZF_OVERRIDES_VAR='--height 3'
|
||||
|
||||
# if you want to override for all cases
|
||||
FZF_DEFAULT_OPTS="--height 3" navi
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue