Commit graph

396 commits

Author SHA1 Message Date
Denis Isidoro
fdf5bf4382
Merge pull request #135 from ameliagapin/follow-symlink
## What does this do

This modifies `cheat::find()` to follow symbolic links on disk. This allows users who symlink their dotfiles to `~` to keep their custom cheatsheets in their dotfiles repo.

## How to test

* [X] Create a new cheatsheet somewhere on disk
* [X] Create a symbolic link to that directory inside of your user's home directory
* [X] Set the path for navi cheatsheets to the symbolic link
* [X] Invoke navi
* [X] Ensure cheatsheets are visible
2019-10-23 18:11:13 -03:00
amelia
e8a70265f5 follow symlinks for cheatsheet directories 2019-10-23 14:36:48 -04:00
Denis Isidoro
3fd49ed0f2
Minor upgrade instruction refactor 2019-10-23 13:59:15 -03:00
Denis Isidoro
bcf3f3576a
Correctly escape backslashes (#132) 2019-10-18 13:21:11 -03:00
Denis Isidoro
4a67ff50da Bump to 0.14.1 2019-10-15 10:10:14 -03:00
Denis Isidoro
6b1e382338
Merge pull request #130 from lpy-neo/master
fix bug about variable suggestion
2019-10-15 10:09:47 -03:00
lpy-neo
9c61f287c1
fix bug about variable suggestion 2019-10-15 20:50:21 +08:00
Denis Isidoro
9de870ab02
Merge pull request #129 from enisozgen/Create-cheats-yum
Create cheats yum
2019-10-15 07:39:28 -03:00
Enis OEZGEN
50b84ef803 Create cheats yum 2019-10-15 11:00:08 +02:00
Denis Isidoro
76e216b24a
Merge pull request #128 from denisidoro/dev
0.14.0
2019-10-14 15:45:07 -03:00
Denis Isidoro
fcd486e16b 💅 2019-10-14 15:42:06 -03:00
Denis Isidoro
befb5ac696 Minor cleanup in cheatsheets 2019-10-14 13:54:09 -03:00
Denis Isidoro
6a1327ee11 Bump to 0.14.0 2019-10-14 13:52:19 -03:00
Denis Isidoro
e6486d6b26 Fix some cheatsheets 2019-10-14 13:51:58 -03:00
Denis Isidoro
2993608739
Merge pull request #56 from vungoccuong/master
Add more cheatsheets
2019-10-14 13:48:37 -03:00
Denis Isidoro
cf090d546c Add instructions for fish widget 2019-10-14 13:44:52 -03:00
Denis Isidoro
8b99c86e5a
Merge pull request #123 from tfriedel/master
navi fish plugin with ability to edit commandline

here's my version of the fish plugin. I adapted it from the fzf plugin which allows to go through the command line history (ctrl-r). the fzf_tmux_height  variables don't seem to have an effect. 
there's also an issue where if you cancel navi (ctrl-c), you still have some invisible ^C / ctrl-c character left in the commandline. So your next command will not work unless you press ctrl-c again. This should probably be fixed somehow. 
I had a problem where the line where I call navi would show prompts when run from the shell, but not in the function. I searched around the fish shell issues and running "stty sane" was suggested as a solution.
2019-10-14 13:39:58 -03:00
Denis Isidoro
8ef05c26cb
Merge pull request #127 from fengyuxx/master
Add kubectl config get-contexts
Add kubectl config current-context
Add kubectl config use-context <context>
2019-10-14 13:38:09 -03:00
Denis Isidoro
fe8c6fd79a
Merge pull request #124 from alxbl/omz-readme
doc(#121): Clarify that oh-my-zsh does not add navi to PATH.

I've updated the documentation for oh-my-zsh setup to explicitly state that navi won't be callable as a command unless it is also installed or manually added to PATH, along with instructions on how to do that.

Cheers,
Alex
2019-10-14 13:37:36 -03:00
Denis Isidoro
6036e3c86b
Merge pull request #120 from jmbataller/gpg-cheat
Cheatsheet for gpg
2019-10-14 13:36:48 -03:00
Jose Miguel Bataller
56a70120b4 rename variable names to fix test 2019-10-14 15:27:16 +01:00
fengyuxx
d21e44fc0b
Update kubernetes.cheat
Add kubectl config get-contexts
Add kubectl config current-context
Add kubectl config use-context <context>
2019-10-14 20:06:22 +08:00
Jose Miguel Bataller
2425af1623 removed hardcoded public key server 2019-10-14 09:19:54 +01:00
Alexandre Beaulieu
653d30c580
doc: fixed typos. 2019-10-12 13:00:37 -04:00
Alexandre Beaulieu
1a6407d9ff
doc(#121): Clarify that oh-my-zsh does not add navi to PATH. 2019-10-12 12:45:43 -04:00
Thomas Friedel
f278212132 navi fish plugin with ability to edit commandline 2019-10-11 20:31:35 +02:00
Denis Isidoro
cc2e3f7832
Fix typo 2019-10-11 14:40:42 -03:00
Denis Isidoro
69e74204b2
Minor changes (#122) 2019-10-11 14:33:16 -03:00
Jose Miguel Bataller
cf9bff10a3 gpg cheat 2019-10-11 09:02:39 +01:00
Denis Isidoro
40ed4e60ba Fix command_exists for empty string 2019-10-05 14:17:41 -03:00
Denis Isidoro
6129d9e954
Refactor string escaping code (#114)
Fix #111
2019-10-05 14:08:00 -03:00
Denis Isidoro
13ddc7c226
Merge pull request #113 from emersonmx/fix-args
Fix read only error
2019-10-04 21:53:57 -03:00
Emerson MX
f2d2c6cc57 Fix read only error 2019-10-04 20:16:14 -03:00
Denis Isidoro
b7c5fb8fea
Add possibility to pass argument values (#110)
If `navi best github` prompts for `user`, then `navi best github foo` will consider `foo` as `user`.
2019-10-04 18:13:11 -03:00
Denis Isidoro
0941166c9c Fix regex checks 2019-10-03 14:39:23 -03:00
Priya Pandya
7c767810e4 [src]: Add condition to check regex for arg/escaped_arg (#109)
Fixes #20
2019-10-03 14:34:05 -03:00
Denis Isidoro
78638c67e4
Add fallback to tac (#108)
Fix #107
2019-10-03 12:56:36 -03:00
Denis Isidoro
4792621b8c
Change quotes 2019-10-03 08:47:48 -03:00
Denis Isidoro
ae8de44df7
Install instruction updates (#106)
Fixes #51
2019-10-02 16:07:37 -03:00
Denis Isidoro
5eb5f64c5e Change demo gif 2019-10-02 14:47:46 -03:00
Denis Isidoro
8e606a50ba
Limit cheat for selection (#102)
Say we have a cheat with a free input for `<foo>` and there's another cheat with suggestions for `<foo>`. If you select a command from the first cheat, the suggestions in the second cheat would be used, before this PR.
2019-10-02 12:14:07 -03:00
Denis Isidoro
56da729965
Minor README update (#103) 2019-10-02 12:13:42 -03:00
Denis Isidoro
4627b5db0b
Add widget for bash (#105)
Partially solves #37
2019-10-02 12:12:20 -03:00
Denis Isidoro
d9a7486eb6
Merge pull request #101 from alxbl/omzsh-plugin
Thanks for making this project, it's really cool! I'd been looking for something like this for a while.
I noticed that your shell widget is pretty much stand-alone and I wanted to be able to use navi directly as an [oh-my-zsh][1] plugin, so I added a few things to the widget and moved it to the root of the repository so that the repo can be cloned straight into the `plugins` folder and detected when added in the plugin array.

I think it should be similarly simple with `fish`, but I'm not too familiar with that shell, so I'll leave it to someone else. The `navi.plugin.zsh` file should still be sourcable as a widget for people not using oh-my-zsh, so technically the `shell/` directory could be removed and `navi widget`updated to use the new file.

## What's included
- oh-my-zsh plugin
- install documentation
- no PATH modification required when used with OMZ
- Added bonus: #51 is kind of unofficially addressed by this (assuming one uses OMZ)

## Future Work
- Pre-filter using `$BUFFER` when hitting `Alt+G` to get something similar to `navi query`
- Update `navi widget zsh` to use `navi.plugin.zsh`

Let me know what you think. I'm working on a few cheatsheets, and will open PRs for those as they become ready.

Cheers,
Alex

[1]: https://github.com/robbyrussell/oh-my-zsh
2019-10-02 10:13:48 -03:00
Alexandre Beaulieu
022aee2b13
fix: oh-my-zsh update no longer invokes make install. 2019-10-01 18:23:51 -04:00
Alexandre Beaulieu
f6f643cec2
fix: renamed DST to plugins_dir. 2019-10-01 17:46:56 -04:00
Alexandre Beaulieu
286cb9f97f
doc: code review changes. 2019-10-01 17:41:34 -04:00
Alexandre Beaulieu
507bd277a9
doc: Added oh-my-zsh installation instructions. 2019-09-30 14:18:52 -04:00
Alexandre Beaulieu
32b1b42f2c
feat: Add oh-my-zsh plugin compatibility. 2019-09-30 14:09:35 -04:00
Denis Isidoro
0c960fca54
Interpolation: only quote multi-word values (#100)
- Fixes #99 
- adds `platform::existing_command`
2019-09-30 11:27:03 -03:00