Commit graph

127 commits

Author SHA1 Message Date
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
Denis Isidoro
97329b97f6
Show comment for command in preview window (#98) 2019-09-28 23:58:00 -03:00
Denis Isidoro
a485030355
Merge pull request #95 from engrravijain/master
#60 names can include dashes or spaces
2019-09-28 23:26:57 -03:00
Denis Isidoro
68ba9ed3df
Merge branch 'master' into master 2019-09-28 23:26:27 -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
2aa07c2ce1
Minor fixes (#96)
- fix widget
- cleanup
- fix dict lib
2019-09-28 23:12:47 -03:00
Ravi Jain
895a70601b #60 fix space/dash regex 2019-09-28 19:33:38 +05:30
Ravi Jain
913d303cb4 #60 names can include dashes or spaces 2019-09-28 11:18:23 +05:30
Denis Isidoro
d55b5725d4
Correctly escape % in cheatsheets (#94) 2019-09-27 16:53:31 -03:00
Denis Isidoro
4bf6c981f4 Bump to 0.10.0 2019-09-27 15:12:55 -03:00
Denis Isidoro
0eeb3218b0 Fix typo 2019-09-27 15:12:55 -03:00
Denis Isidoro
260966ba6c Improve zsh widget (#92) 2019-09-27 15:12:55 -03:00
Denis Isidoro
b9084c0439 Add suppot for multiline snippets (#91)
Fix #88
2019-09-27 15:12:55 -03:00
Denis Isidoro
00a2d2b91e Escape subshells in cheatsheets (#90)
Fix #85
2019-09-27 15:12:55 -03:00
Denis Isidoro
303f9f67d1 Remove unnecessary echo 2019-09-27 15:12:55 -03:00
Denis Isidoro
473b409c93 Store cheatsheets in memory (#86)
Fixes #61 and kind of fixes #76 (actually it still depend on tags to find a snippet but that's not a problem anymore since everything is in memory now)
2019-09-27 15:12:55 -03:00