Commit graph

825 commits

Author SHA1 Message Date
Viktor Ashirov
4b07ddfe1a Handle multiline snippets better
Add support for code blocks using markdown syntax. Lines that are
part of the snippet and match the variables regex won't be interpeted as
a variable.

Additionally, add `.cheat.md` as a file extension for cheats so that it
can be rendered on GitHub with proper code formatting and syntax
highlighting.

Fixes #806
2022-12-19 20:35:54 +01:00
Denis Isidoro
13fe757a8a
Merge pull request #776 from trantor/preview_fix
Fix preview map "leaking" with multiple variables
2022-11-15 17:26:00 -03:00
Denis Isidoro
0c82419934
Merge pull request #801 from bimlas/extend-docs
Extend docs
2022-11-15 17:25:33 -03:00
bimlas
636812cc2f Add link to TiddlyWiki plugin 2022-11-15 21:00:57 +01:00
bimlas
d05fc4538d Add documentation about Tmux-widget 2022-11-15 20:53:14 +01:00
Denis Isidoro
8373da2166
Merge pull request #797 from yuta100101/fix/install
Fix install script
2022-10-17 08:26:05 +03:00
yuta100101
1823e19037 Fix install script 2022-10-09 13:16:00 +09:00
Denis Isidoro
69075b73f1
Delete dependabot.yml 2022-09-11 20:14:07 -03:00
Denis Isidoro
fb706b7fbc
Merge pull request #792 from kianmeng/prettify-md-yaml
Prettify md/yaml files
2022-09-11 07:45:58 -03:00
Denis Isidoro
d2b0935e9b
Merge pull request #791 from kianmeng/fix-typos
Fix typos
2022-09-11 07:45:18 -03:00
Kian-Meng Ang
5c6da68122 Prettify md/yaml files
Resolved via `prettier -w .`
2022-09-08 20:56:04 +08:00
Kian-Meng Ang
dee8f3698f Fix typos
Found via `codespell -L crate,ser`
2022-09-08 20:53:54 +08:00
Fulvio Scapin
41aa47e280 Fix preview map "leaking" with multiple variables
With multiple variables in the preview, each with
different «--map» options, there is an application
of the map code for the current variable to the
preview of the other variables as well.
This code fixes that.
2022-08-21 21:54:42 +02: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
81cd721b76
Fallback to nano if EDITOR isn't set (#764)
Fixes #759
2022-07-28 20:13:23 -03:00
Denis Isidoro
ebb02e28ec
Refactor code base (#760) 2022-07-28 20:11:42 -03:00
Denis Isidoro
f5759f26aa
Merge pull request #751 from pbzweihander/fix-typo-in-installation-docs
Fix typo in installation docs
2022-07-08 11:14:36 -03:00
pbzweihander
80f4a3dd9a
Fix typo in installation docs 2022-07-08 11:15:34 +09:00
dependabot[bot]
7666484ee4
Bump crossterm from 0.23.2 to 0.24.0 (#750)
Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.23.2 to 0.24.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/commits/0.24)

---
updated-dependencies:
- dependency-name: crossterm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-07 08:18:55 -03:00
dependabot[bot]
4a3aac37d9
Bump clap from 3.2.6 to 3.2.8 (#748)
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.2.6...v3.2.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 20:31:45 -03:00
dependabot[bot]
484615af1c
Bump serde from 1.0.137 to 1.0.138 (#749)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.137 to 1.0.138.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.137...v1.0.138)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 20:31:36 -03:00
dependabot[bot]
5e71a13b9b
Bump clap from 3.2.1 to 3.2.6 (#747)
Bumps [clap](https://github.com/clap-rs/clap) from 3.2.1 to 3.2.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v3.2.1...v3.2.6)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-27 20:08:23 -03:00
dependabot[bot]
275a2cbdd9
Bump anyhow from 1.0.57 to 1.0.58 (#743)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.57 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.57...1.0.58)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:00:39 -03:00
dependabot[bot]
f649de95c9
Bump clap from 3.1.18 to 3.2.1 (#741)
Bumps [clap](https://github.com/clap-rs/clap) from 3.1.18 to 3.2.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v3.1.18...clap_complete-v3.2.1)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-14 11:57:12 -03:00
dependabot[bot]
49570bf7b5
Bump edit from 0.1.3 to 0.1.4 (#739)
Bumps [edit](https://github.com/milkey-mouse/edit) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/milkey-mouse/edit/releases)
- [Commits](https://github.com/milkey-mouse/edit/compare/v0.1.3...v0.1.4)

---
updated-dependencies:
- dependency-name: edit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 09:31:40 -04:00
dependabot[bot]
7c9ad641c7
Bump crossbeam-utils from 0.8.5 to 0.8.8 (#738)
Bumps [crossbeam-utils](https://github.com/crossbeam-rs/crossbeam) from 0.8.5 to 0.8.8.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-utils-0.8.5...crossbeam-utils-0.8.8)

---
updated-dependencies:
- dependency-name: crossbeam-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 09:31:22 -04:00
dependabot[bot]
afbae1f935
Bump crossbeam-deque from 0.8.0 to 0.8.1 (#737)
Bumps [crossbeam-deque](https://github.com/crossbeam-rs/crossbeam) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases)
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md)
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-deque-0.8.0...crossbeam-deque-0.8.1)

---
updated-dependencies:
- dependency-name: crossbeam-deque
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 09:31:11 -04:00
Denis Isidoro
2e1530bb9b
Merge pull request #735 from papanito/papanito/update-windows-install-docu
feat: add install docu for windows powershell
2022-05-30 13:54:39 -03:00
Adrian Wyssmann
9c9034f2f1
feat: add install docu for windows powershell
As suggested in [this comment](https://github.com/denisidoro/navi/issues/40#issuecomment-1059836964)
2022-05-30 14:09:37 +02:00
dependabot[bot]
17725d22b5
Bump regex from 1.5.5 to 1.5.6 (#734)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.5 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.5...1.5.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-23 20:43:41 -03:00
Denis Isidoro
57348e0f74
Fix version in Cargo.toml (#732) 2022-05-18 09:02:35 -03:00
Denis Isidoro
91763d85aa
Merge pull request #731 from chenrui333/patch-1
fix: update version
2022-05-18 09:00:42 -03:00
Rui Chen
5732bfc8a9
update version 2022-05-15 22:52:44 -04:00
Denis Isidoro
ff638495d1
Temporarily remove lint checks (#730) 2022-05-15 12:22:48 -03:00
Denis Isidoro
281950c1b9
Bump all possible dependencies(#729) 2022-05-15 12:14:19 -03:00
Denis Isidoro
7e297fc2b5
Fix path-related tests (#727) 2022-05-15 12:06:33 -03:00
Denis Isidoro
67d6a6a27f
Release binary for Linux ARM64(#728)
Fixes #726
2022-05-15 12:05:25 -03:00
Denis Isidoro
6dc6b82e6f
Merge pull request #707 from lacygoill/fix-typos
fix minor typos
2022-03-17 16:00:44 -03:00
lagygoill
2bd30e3099 fix minor typos 2022-03-16 22:25:00 +01:00
dependabot[bot]
537e2d6ad8
Bump crossterm from 0.22.1 to 0.23.0 (#683)
Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.22.1 to 0.23.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/commits/0.23)

---
updated-dependencies:
- dependency-name: crossterm
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:31:14 -03:00
dependabot[bot]
cdcc80b7e0
Bump serde from 1.0.135 to 1.0.136 (#679)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.135 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.135...v1.0.136)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:31:07 -03:00
Denis Isidoro
77403ca0e5
Merge pull request #697 from carlfriedrich/make-width-configurable-for-snippet-column
Make width configurable for snippet column
2022-03-06 07:40:45 -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
Denis Isidoro
528178e219
Merge pull request #686 from ukautz/feature/linux-multi-tenant
Add shared paths for cheat directory and config file
2022-02-15 15:59:02 -03: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
Denis Isidoro
6a76afc535
Merge pull request #684 from ukautz/feature/disable-repo-management
Add build feature to disable repo management
2022-02-09 07:32:41 -03: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