Commit graph

30 commits

Author SHA1 Message Date
asd
051832d1a5 OpenSSL 2020-03-15 13:56: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
ce9c22100a
Allow overriding FZF variables (#235)
`$FZF_DEFAULT_OPTS` won't work in some use cases because it has lower precedence then hardcoded settings such as `--exact`.

Usage:
```
export NAVI_FZF_OVERRIDES=" --no-exact"
navi
```

Fixes #232
2020-03-12 14:57:02 -03:00
Denis Isidoro
4dffbe6f29 Fix brew formula script 2020-03-11 20:38:13 -03:00
Denis Isidoro
2ac30999c2 Bump 2020-03-11 11:31:04 -03:00
Denis Isidoro
06eae50613
Minor fixes (#221) 2020-03-11 11:30:25 -03:00
Denis Isidoro
e6b7c2f358 Add script for getting SHA for specific version 2020-03-10 14:18:14 -03:00
Denis Isidoro
1cbb167b57
Allow custom dirs when running make (#214) 2020-03-09 18:41:06 -03:00
asd
ff90946bdb Add ./scripts/brew sha 2020-03-07 18:45:10 -03:00
Denis Isidoro
b3ab91a9a0 Add test cheat 2020-03-05 15:06:38 -03:00
Denis Isidoro
c5cd85bb41
Rust implementation (#197) 2020-03-04 18:01:23 -03:00
Denis Isidoro
69e74204b2
Minor changes (#122) 2019-10-11 14:33:16 -03:00
Denis Isidoro
78638c67e4
Add fallback to tac (#108)
Fix #107
2019-10-03 12:56:36 -03:00
Denis Isidoro
97329b97f6
Show comment for command in preview window (#98) 2019-09-28 23:58:00 -03:00
Denis Isidoro
d04dfc1003
Allow variable names to include dashes and spaces (#97)
Based on https://github.com/denisidoro/navi/pull/95 by @engrravijain 

Fixes #60
2019-09-28 23:24:12 -03:00
Denis Isidoro
beab843c1e Add option for calling best match directly (#83)
Fix #62
2019-09-27 15:12:55 -03:00
Denis Isidoro
a802671f6a
Bump to 0.9.3 (#70) 2019-09-25 08:16:30 -03:00
Denis Isidoro
36cd52f93d
Minor refactor (#57)
- [x] Define OPTIONS as global in opts::eval
- [x] Add script
- [x] Minor changes
2019-09-24 16:13:57 -03:00
Denis Isidoro
95fc254736
Add MVP for zsh widget (#50)
Related: #37
2019-09-23 18:14:58 -03:00
Denis Isidoro
c4e9c7a90a
Refactor code (#49)
Use dictionaries + more
2019-09-23 17:46:16 -03:00
Denis Isidoro
324af72a0e
Add update script (#31) 2019-09-21 19:27:12 -03:00
Denis Isidoro
0df4b9123d
Fix linting (#30) 2019-09-21 19:24:09 -03:00
Denis Isidoro
c8764ae224
Warn about fzf if not installed (#27)
Fix #13
2019-09-21 17:43:17 -03:00
Denis Isidoro
9ef95ab2cc
Add double-quotes to arguments (#24) 2019-09-21 17:17:01 -03:00
Denis Isidoro
04539f3b94 Remove typos 2019-09-21 17:15:16 -03:00
Denis Isidoro
62d64c2e03
Remove dependency on brew in scripts/release (#23)
Fix #22
2019-09-21 17:14:52 -03:00
Denis Isidoro
f6b70d0821 Fix release script 2019-09-20 18:49:47 -03:00
Denis Isidoro
9351301e7e Improve release script 2019-09-20 18:48:54 -03:00
Denis Isidoro
2bc52976c2
Add tests (#3) 2019-09-20 18:44:51 -03:00
Denis Isidoro
132aee10ce 0.3.0 2019-09-20 14:01:12 -03:00