Kian-Meng Ang
dee8f3698f
Fix typos
...
Found via `codespell -L crate,ser`
2022-09-08 20:53:54 +08:00
Denis Isidoro
9d862344e6
Minor code base improvements ( #767 )
2022-07-29 19:25:36 -03:00
Denis Isidoro
8b78d54863
Improve error handling for cheatsh and tldr ( #766 )
...
Fixes #695 and #703
2022-07-29 18:53:18 -03:00
Denis Isidoro
d68c4437a1
Support multi-word arguments in FZF overrides ( #765 )
...
Fixes #752
2022-07-28 20:17:43 -03:00
Denis Isidoro
ebb02e28ec
Refactor code base ( #760 )
2022-07-28 20:11:42 -03:00
Denis Isidoro
7e297fc2b5
Fix path-related tests ( #727 )
2022-05-15 12:06:33 -03:00
carlfriedrich
6b43872b90
Make width configurable for snippet column
...
Even though the options 'width_percentage' and 'width_min' were allowed
in the config.yaml file for all three columns (tag, comment, snippet),
they were not actually parsed for the snippet column. This patch makes
these settings work.
2022-03-04 18:50:42 +01:00
Ulrich Kautz
87f0ac0aec
Use already existing env var names
2022-02-14 13:53:21 +00:00
Ulrich Kautz
ef036c3224
Allow compile time default paths for cheats and config
...
This CL makes it easier to install navi on multi-tenant Linux systems, by allowing to provide pre-install cheatsheets in shared folders (and potentially pre-installed config in shared folders).
This does not break or change the existing behaviour. The shared directory / config file is only used if
- There is not already a directory / config file in the user XDG location
- Navi is compiled with NAVI_CONFIG_FILE and/or NAVI_CHEATS_DIRECTORY env var set
- The paths defined in above env vars exist
2022-02-11 17:21:53 +00:00
Ulrich Kautz
b5b79b4bf2
Add build feature to disable repo management
...
Having a command to install cheatsheets from repositories on github is amazing and makes `navi` very easy to setup and get started. The repo contents provide the "meat" of `navi`. A one-liner can load a bunch of useful cheatsheets for a whole host of open source commands.
However, in locked down environments, where a high level of control of what is executed needs to be imposed, having the capability to download and use "arbitrary code from the internet" can be more harmful than good. Here you would likely want to manage all cheathsheets for `navi` carefully yourself. Possibly reviewing each cheathsheet individually. This CL provides a build feature that disables the whole `repo` sub-command tree to support that use-case.
2022-02-09 10:23:50 +00:00
Ulrich Kautz
63e31baa74
Add build feature to disable command execution
...
This CL adds the build feature `disable-command-execution` that enforces the `--print` flag and thereby disables execution of commands.
2022-01-27 13:31:31 +00:00
Denis Isidoro
35b544f418
Bump clap from 3.0.0-beta.5 to 3.0.6
2022-01-12 08:50:55 -03:00
Denis Isidoro
d672d6253d
Fix lint issues ( #658 )
2021-12-19 17:00:11 -03:00
Denis Isidoro
8725654a74
Allow multi-word shell.command config ( #644 )
...
Fixes #645
2021-11-23 09:54:25 -03:00
Denis Isidoro
95e57cf084
Update to rust 1.56.0 and 2021 edition ( #637 )
2021-10-30 18:07:05 -03:00
Kevin K
63f2a693cf
updates clap to v3.0-beta.5
2021-10-25 11:32:44 -04:00
Denis Isidoro
3b1038c884
Add support for multiline variables
...
Fixes #628
2021-10-15 13:16:10 -03:00
Daniel Fitzpatrick
715d3d59e4
Add elvish widget
2021-09-08 16:51:44 -05:00
Denis Isidoro
3abd3dad6e
Widget: fix interpretation of ||
...
Fixes #543
2021-08-09 10:42:51 -03:00
Denis Isidoro
c976c9199d
Ignore paths with invalid env vars
2021-08-09 10:23:07 -03:00
Denis Isidoro
32a3746174
ix colors in help message
2021-08-09 10:15:59 -03:00
Denis Isidoro
5a46e48fd6
Improve error message when unable to interpolate env vars in path
2021-08-09 09:55:36 -03:00
Denis Isidoro
0f95a29dfd
Fix --map when using zsh
...
Fixes #584
2021-08-08 17:58:42 -03:00
Denis Isidoro
85ca69a263
Add cheats for navi itself ( #599 )
...
Fixes #380
2021-08-08 08:12:19 -03:00
Denis Isidoro
027ad539c2
Fix navi fn welcome
2021-08-07 15:58:25 -03:00
Denis Isidoro
02fc83991b
Do not collapse empty lines in snippets ( #595 )
...
Fixes #539
2021-08-07 12:24:39 -03:00
Denis Isidoro
59362c0ec8
Fix behavior for snippets with duplicated lines
2021-08-07 12:07:17 -03:00
Denis Isidoro
e6acbe7936
Add support for --expand
...
Fixes #542
2021-08-07 10:52:30 -03:00
Denis Isidoro
954bc8871b
yaml: add support for cheats.paths
2021-08-07 10:42:46 -03:00
Denis Isidoro
fe37cd9107
Fix finder options ( #590 )
2021-08-07 10:31:53 -03:00
Denis Isidoro
3f3005f818
Prevent snippet autoselec
...
Fixes #582
2021-08-07 08:26:25 -03:00
Denis Isidoro
dd1cdb5bce
Interpolate env variables in NAVI_PATH ( #588 )
...
Fixes #572
2021-08-07 07:41:19 -03:00
Denis Isidoro
5e7b24abe8
Fix clippy warnings
2021-08-07 07:05:33 -03:00
dependabot[bot]
7a8c5a7f4b
Bump crossterm from 0.19.0 to 0.20.0 ( #564 )
...
* Bump crossterm from 0.19.0 to 0.20.0
Bumps [crossterm](https://github.com/crossterm-rs/crossterm ) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/crossterm-rs/crossterm/releases )
- [Changelog](https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossterm-rs/crossterm/compare/0.19...0.20 )
---
updated-dependencies:
- dependency-name: crossterm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Jun-15 10h13: writer.rs, preview_var.rs, preview.rs
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Denis Isidoro <denis.isidoro@uber.com>
2021-06-15 10:16:54 -03:00
Denis Isidoro
7257845abf
Fix preview-var when using fish ( #567 )
2021-06-15 10:08:07 -03:00
Denis Isidoro
4c9583bdf2
Replace ~ by $HOME ( #565 )
2021-06-15 09:43:40 -03:00
dgengtek
327f9579dc
Pass delimiter to finder
2021-06-05 17:16:20 +02:00
Denis Isidoro
c9701db6ca
Print an empty line between previews ( #536 )
2021-04-22 09:58:20 -03:00
Denis Isidoro
30fbb30514
Use absolute path for navi when possible ( #535 )
2021-04-22 09:44:28 -03:00
Denis Isidoro
baa477cd81
Fix navi fn welcome ( #534 )
2021-04-22 09:35:21 -03:00
Denis Isidoro
26ec4bf033
Fix preview-window in Windows ( #531 )
2021-04-20 07:09:23 -03:00
Denis Isidoro
7c62a5af7b
Improve documentation ( #529 )
2021-04-19 10:42:27 -03:00
Denis Isidoro
fcd7bd80d8
Config: get from cli, then env, then yaml ( #528 )
2021-04-19 10:34:13 -03:00
Denis Isidoro
7a7f1a3311
Refactor scripts ( #527 )
2021-04-19 09:54:35 -03:00
Denis Isidoro
53b1d6e7a4
Do not use -c in cmd.exe ( #524 )
2021-04-19 07:06:34 -03:00
Denis Isidoro
2266c1bc75
Fix Windows builds ( #522 )
2021-04-19 06:57:08 -03:00
Denis Isidoro
639e1dc46a
Fix allowlist logic ( #520 )
2021-04-17 12:06:29 -03:00
Denis Isidoro
9d9ae304ba
Fail on bad colors ( #519 )
2021-04-17 10:31:23 -03:00
Denis Isidoro
7fb2b53463
Add support for config file ( #518 )
2021-04-17 10:17:22 -03:00
Denis Isidoro
d8d0d81368
Refactor writer packages ( #517 )
2021-04-16 09:23:53 -03:00