Commit graph

53 commits

Author SHA1 Message Date
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
8c3748f997
Fix --preview-window for repo browse (#302) 2020-03-22 10:14:47 -03:00
Csonka Mihaly
70ec05ba5e Add anyhow dependency. 2020-03-20 22:51:07 +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
8f0a686ddb
Merge branch 'master' into feature/travis 2020-03-16 20:48:59 +08:00
Ingolf Wagner
7c44194aee
travis: add travis build script 2020-03-16 20:45:03 +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
Denis Isidoro
4593a50bd0 Fewer keywords 2020-03-15 19:49:38 -03:00
Denis Isidoro
5029722fc6 Add more labels to Cargo.toml 2020-03-15 19:47:00 -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