Commit graph

41 commits

Author SHA1 Message Date
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