Commit graph

129 commits

Author SHA1 Message Date
dependabot[bot]
7c27e372bf
Bump crossterm from 0.20.0 to 0.21.0 (#612)
Bumps [crossterm](https://github.com/crossterm-rs/crossterm) from 0.20.0 to 0.21.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)

---
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>
2021-08-24 09:15:49 -03:00
Denis Isidoro
4d404a75fe Aug-23 09h14: Cargo.toml, Cargo.lock 2021-08-23 09:14:37 -03:00
Denis Isidoro
ea198d5e25
Revert "Bump clap from 3.0.0-beta.2 to 3.0.0-beta.4 (#606)" (#609)
This reverts commit 03534138a9.
2021-08-23 09:13:02 -03:00
dependabot[bot]
70b8e1062b
Bump anyhow from 1.0.42 to 1.0.43 (#607)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.42 to 1.0.43.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.42...1.0.43)

---
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>
2021-08-16 20:21:49 -03:00
dependabot[bot]
03534138a9
Bump clap from 3.0.0-beta.2 to 3.0.0-beta.4 (#606)
Bumps [clap](https://github.com/clap-rs/clap) from 3.0.0-beta.2 to 3.0.0-beta.4.
- [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.0.0-beta.2...v3.0.0-beta.4)

---
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>
2021-08-16 20:21:23 -03:00
Denis Isidoro
b30f680cb0 Bump to 2.17.0 2021-08-09 10:47:24 -03:00
dependabot[bot]
8cee230313
Bump serde from 1.0.126 to 1.0.127 (#585)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.126 to 1.0.127.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127)

---
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>
2021-08-03 12:04:54 -03:00
dependabot[bot]
d57a2a998c
Bump anyhow from 1.0.41 to 1.0.42 (#579)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.41...1.0.42)

---
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>
2021-07-12 17:46:20 -03:00
dependabot[bot]
851dec6831
Bump thiserror from 1.0.25 to 1.0.26 (#575)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.25 to 1.0.26.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.25...1.0.26)

---
updated-dependencies:
- dependency-name: thiserror
  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>
2021-07-05 21:36:04 -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
4c9583bdf2
Replace ~ by $HOME (#565) 2021-06-15 09:43:40 -03:00
dependabot[bot]
2c6620f835
Bump anyhow from 1.0.40 to 1.0.41 (#563)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.40 to 1.0.41.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.40...1.0.41)

---
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>
2021-06-14 09:57:29 -03:00
dependabot[bot]
d517c4b139
Bump thiserror from 1.0.24 to 1.0.25 (#555)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.24 to 1.0.25.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.24...1.0.25)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-24 07:23:02 -03:00
dependabot[bot]
5284ce5064
Bump serde from 1.0.125 to 1.0.126 (#550)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.125 to 1.0.126.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 09:50:29 -03:00
dependabot[bot]
5206809713
Bump regex from 1.5.3 to 1.5.4 (#548)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.3 to 1.5.4.
- [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.3...1.5.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-17 09:50:23 -03:00
dependabot[bot]
17311db3e2
Bump regex from 1.4.6 to 1.5.3 (#544)
Bumps [regex](https://github.com/rust-lang/regex) from 1.4.6 to 1.5.3.
- [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.4.6...1.5.3)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-03 09:48:51 -03:00
dependabot-preview[bot]
d48d5c03e2
Bump regex from 1.4.5 to 1.4.6 (#538) 2021-04-26 11:48:29 +00:00
Denis Isidoro
c9701db6ca
Print an empty line between previews (#536) 2021-04-22 09:58:20 -03:00
Denis Isidoro
7fb2b53463
Add support for config file (#518) 2021-04-17 10:17:22 -03:00
Denis Isidoro
f8adffd3ff
Remove support for alfred (#509) 2021-04-15 11:00:04 -03:00
Denis Isidoro
d550b29fb0
Fix path for downloaded cheats (#493) 2021-04-11 07:43:25 -03:00
Denis Isidoro
307f0c11b2
Improve bash and zsh widgets (#486) 2021-04-09 11:55:44 -03:00
Denis Isidoro
243a2c8472
Use crossterm instead of termion and terminal_width 2021-04-06 10:33:05 -03:00
Denis Isidoro
58dec4b8e8
Use remove_dir_all crate (#482) 2021-04-06 09:47:37 -03:00
Denis Isidoro
16a8b27734
Refactor terminal_width package 2021-04-05 09:41:30 -03:00
Denis Isidoro
b6be9db6a8
Bump all dependencies (#466) 2021-04-04 17:54:36 -03:00
Denis Isidoro
5c43c5173a
Improve argument parsing (#452)
Fixes #440
2021-01-07 09:31:34 -03:00
Denis Isidoro
c1a2bd8d30 Bump to 2.13.1 2020-12-22 12:05:01 -03:00
Benjamin Siderius-Manning
d78bcf1f60 Add option to open .cheat with ctrl-o. 2020-11-24 21:30:51 +01:00
Denis Isidoro
6dcbcfea54
Improve support for variable prompt in shell scripting (#428) 2020-10-15 15:44:56 -03:00
Denis Isidoro
9cf1227275
Fix trailing slash in $NAVI_PATH (#426)
Fix #420
2020-10-13 09:56:31 -03:00
Denis Isidoro
de06161baf
Fix support for fish shell (#421) 2020-10-08 17:45:01 -03:00
Denis Isidoro
1f37918142
Depend on directories-next instead of dirs (#400) 2020-09-14 08:53:53 -03:00
Denis Isidoro
6808dccf5c
Allow variable suggestions to use preview window (#399) 2020-09-14 08:48:57 -03:00
Denis Isidoro
566f7c9f2c Revamp preview window for argument selection (#398) 2020-09-11 11:59:34 -03:00
Denis Isidoro
e61e588b82
Improve documentation (#395) 2020-08-29 18:58:55 -03:00
Denis Isidoro
84273c129c
Upgrade all dependencies (#389) 2020-08-28 09:29:19 -03:00
Denis Isidoro
4ba0373790
Add initial support for cheat.sh and tldr (#387)
In order to browse cheatsheets from other projects.
2020-08-28 09:12:44 -03:00
Denis Isidoro
00fe27ba79
Add ability to extend cheatsheets (#382)
Fixes #377
2020-08-23 20:09:27 -03:00
Denis Isidoro
657992b173
Allow implicit variable dependencies (#379)
* Allow implicit variable dependencies

* Aug-14 12h01: core.rs, Cargo.toml, Cargo.lock

* Aug-14 12h04: cases.cheat

* Aug-14 12h08: cases.cheat
2020-08-14 13:53:23 -03:00
Denis Isidoro
e11c48ec03
Bump to 2.7.2 (#376) 2020-08-13 15:39:22 -03:00
Denis Isidoro
231f9775ba
Widget: fix behavior for % (#368) 2020-07-10 10:10:38 -03:00
Denis Isidoro
4147d9b0b2 Bump to 2.7.0 2020-06-02 17:00:01 -03:00
Denis Isidoro
a754a6b041
Remove references to bash implementation (#355) 2020-04-27 11:25:58 -03:00
Denis Isidoro
434fc4ac76
Improve code quality a little bit (#352)
Fixes #349
2020-04-25 15:30:05 -03:00
Denis Isidoro
c7f919eaa0
Add support for Alfred (#347) 2020-04-19 15:51:04 -03:00
Denis Isidoro
17b9987886
Fix escaping issues in shell outs (#344) 2020-04-16 09:40:11 -03:00
Denis Isidoro
3188a76759
Prevent panic on empty tag/description (#341)
Fixes #339
2020-04-13 11:24:49 -03:00
Denis Isidoro
c6d17ca062
Shell out to git clone (#336)
Fixes #305
2020-04-11 10:14:04 -03:00
Denis Isidoro
d09fc850f1
Fix skim preview-window (#324) 2020-03-30 10:39:47 -03:00
Denis Isidoro
65154663db
Fix path error on initial run (#313)
Fixes #312 

This isn't idiomatic but it'll do for the time being
2020-03-24 11:42:18 -03:00
Csonka Mihaly
1c7c2932dd Bump version to 2.4.0 2020-03-23 02:10:49 +01:00
Csonka Mihaly
80621dba78 Merge remote-tracking branch 'upstream/master' into improve-error-handling 2020-03-23 00:25:28 +01:00
Csonka Mihaly
38b85fabf6 Add thiserror dependency 2020-03-22 17:37:20 +01:00
Denis Isidoro
b2f6ba54ca Update Cargo.lock 2020-03-22 10:24:48 -03:00
Csonka Mihaly
1d33211c45 Add context for errors when browsing featured cheatsheets. 2020-03-20 23:24:43 +01:00
Denis Isidoro
10f0219792
Forward many more parameters to fzf after --- (#294) 2020-03-19 22:01:50 -03:00
Denis Isidoro
2ca1d8fc85
Fix --multi with --column + refactors (#290) 2020-03-19 09:19:50 -03:00
Denis Isidoro
0b91a374fe
Add navi repo browse (#280) 2020-03-16 22:56:47 -03:00
Denis Isidoro
3f66614818 Bump 2020-03-16 10:22:37 -03:00
Ingolf Wagner
ae2b8ee853
cargo update 2020-03-16 20:56:53 +08:00
Ingolf Wagner
8f0a686ddb
Merge branch 'master' into feature/travis 2020-03-16 20:48:59 +08:00
Denis Isidoro
503c6b54a3 bump 2020-03-16 08:03:05 -03:00
Denis Isidoro
fcfa7843fc wip 2020-03-16 08:02:23 -03:00
Ingolf Wagner
b70fd7d66a
cargo: fix unnecessary openssl dependency 2020-03-16 14:23:46 +08:00
Denis Isidoro
92cf10d10a
Allow repos with @ (#272) 2020-03-15 22:13:18 -03:00
asd
7d7441d6c2 Vendored OpenSSL 2020-03-15 14:06:25 -03:00
Denis Isidoro
de16846aba
Initial cheat repo support (#258)
This PR makes navi stop bundling `.cheat` files and makes it able to download from repos on GitHub, using a standardized config directory.

- it fixes #233 and #237
- it makes #52, #256 and #257 much easier to implement
- it makes #40 harder to implement
- it's an alternate solution to #140 
- it's influenced by #238 and #254.

This PR ended up being much bigger than I would like so if you could review only this description it would be already very nice!

When navi is started for the first time, a welcome cheatsheet is shown:
![Screenshot at 2020-03-15 10-20-04](https://user-images.githubusercontent.com/3226564/76702240-19fffd80-66a7-11ea-884f-97c565bc1ead.png)

If the user selects the first option, the user is prompted to download `.cheat`s from https://github.com/denisidoro/cheats: 
![Screenshot at 2020-03-15 10-20-35](https://user-images.githubusercontent.com/3226564/76702239-19fffd80-66a7-11ea-8f69-324f669b1e01.png)
![Screenshot at 2020-03-15 10-22-59](https://user-images.githubusercontent.com/3226564/76702236-18363a00-66a7-11ea-8ff4-53b497f85888.png)

The config folder is populated:
![Screenshot at 2020-03-15 10-21-11](https://user-images.githubusercontent.com/3226564/76702238-19676700-66a7-11ea-8367-3e7b5733f2b4.png)

When run again, cheats are available:
![Screenshot at 2020-03-15 10-21-34](https://user-images.githubusercontent.com/3226564/76702237-19676700-66a7-11ea-9c2a-d8829340f3e9.png)

### Breaking changes

In order to make navi stop bundling shell widgets as well, a breaking change has been introduced: `source $(navi widget bash)` won't work anymore. It should be `source <(navi widget bash)` now. Any ideas on how to make this transition more graceful?
2020-03-15 13:46:58 -03:00
Denis Isidoro
7f4fc90116
Prevent panic when there are no cheats (#244)
Fixes #243
2020-03-12 23:32:28 -03:00
Denis Isidoro
f6a4fec13d
Add support for variable dependency (#242)
Fixes #203
2020-03-12 21:39:15 -03:00
Denis Isidoro
c5b3b175f6
Add support for navi fn (#241)
Fixes #208
2020-03-12 21:05:18 -03:00
Denis Isidoro
e32e0f1245
Fix delimiter (#239)
Fixes #230
2020-03-12 19:04:47 -03:00
Denis Isidoro
0f8b9853b6 Bump 2020-03-12 17:42:56 -03:00
Denis Isidoro
a1dea118c0
Fix path issues (#231)
Fixes #224 and #228
2020-03-12 13:03:04 -03:00
Denis Isidoro
770793317b
Handle relative symlinks (#225)
Attempts to solve #224 and #223
2020-03-11 20:26:00 -03:00
Denis Isidoro
2ac30999c2 Bump 2020-03-11 11:31:04 -03:00
Denis Isidoro
8069e6dbe2 Bump to 2.0.2 2020-03-10 14:11:19 -03:00
Denis Isidoro
ac61dd09b4
Fix use in subshell (#213) 2020-03-07 18:03:51 -03:00
Denis Isidoro
c5cd85bb41
Rust implementation (#197) 2020-03-04 18:01:23 -03:00