Denis Isidoro
a0c5a6293b
Refactor list visualization ( #138 )
...
Fixes #137
![Demo](https://user-images.githubusercontent.com/3226564/67512211-b2e99a00-f66e-11e9-8ffe-09f30cb54599.png )
2019-10-28 16:56:19 -03:00
amelia
e8a70265f5
follow symlinks for cheatsheet directories
2019-10-23 14:36:48 -04:00
Denis Isidoro
bcf3f3576a
Correctly escape backslashes ( #132 )
2019-10-18 13:21:11 -03:00
lpy-neo
9c61f287c1
fix bug about variable suggestion
2019-10-15 20:50:21 +08:00
Denis Isidoro
69e74204b2
Minor changes ( #122 )
2019-10-11 14:33:16 -03: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
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
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
4627b5db0b
Add widget for bash ( #105 )
...
Partially solves #37
2019-10-02 12:12:20 -03:00
Alexandre Beaulieu
286cb9f97f
doc: code review changes.
2019-10-01 17:41:34 -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
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
Denis Isidoro
d55b5725d4
Correctly escape % in cheatsheets ( #94 )
2019-09-27 16:53:31 -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
Denis Isidoro
b6a5ac1495
Improve test coverage ( #84 )
...
Add integration tests
2019-09-27 15:12:55 -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
9dce96a871
Improve lib for collections ( #82 )
2019-09-27 15:12:55 -03:00
Denis Isidoro
1b12ffa330
Refactor option parsing ( #79 )
2019-09-27 15:12:55 -03:00
Denis Isidoro
093bac0e9f
Add MVP for functional programming
2019-09-27 15:12:55 -03:00
Denis Isidoro
64be01bf1a
Fix escaping issues ( #73 )
...
Fix #72
2019-09-25 11:44:57 -03:00
Denis Isidoro
a802671f6a
Bump to 0.9.3 ( #70 )
2019-09-25 08:16:30 -03:00
Denis Isidoro
d974340939
Suppress tput errors ( #69 )
2019-09-25 08:04:06 -03:00
Denis Isidoro
ea0fb00371
Autoselect on single option ( #68 )
...
Based on #https://github.com/denisidoro/navi/pull/53 by @nikush.
Fixes #44 .
2019-09-25 08:02:35 -03:00
Denis Isidoro
516578479c
Fix snippets with multiple arguments ( #67 )
2019-09-25 07:50:32 -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
2ee253a56e
Add workaround for --help ( #54 )
...
My latest refactor didn't play nice with `--help`so I'm adding this workaround
2019-09-23 19:52:02 -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
2753e84ea6
Revert "Use dictionaries ( #47 )" ( #48 )
...
This reverts commit 9848d7b39a
.
2019-09-23 15:08:36 -03:00
Denis Isidoro
9848d7b39a
Use dictionaries ( #47 )
...
In order to cleanup the code
Related: https://medium.com/@den.isidoro/dictionaries-in-shell-scripts-61d34e1c91c6
Possibly fix #43 (but may bring other inconsistencies)
2019-09-23 14:36:15 -03:00
Denis Isidoro
13446d9883
Prevent wait_for error ( #46 )
...
Fix #45
2019-09-23 14:15:19 -03:00
Denis Isidoro
a21f39ee64
Fix local readonly ( #42 )
...
Based on https://github.com/denisidoro/navi/pull/12 by @qubitrenegade
2019-09-23 09:05:47 -03:00
Denis Isidoro
b3f8e0b374
Improve test runner ( #41 )
2019-09-23 08:56:15 -03:00
Denis Isidoro
638a3d2fc9
Fix preview
2019-09-22 12:10:51 -03:00
Denis Isidoro
77acda383d
Add option for searching online repositories ( #38 )
2019-09-22 11:52:10 -03:00
Denis Isidoro
0df4b9123d
Fix linting ( #30 )
2019-09-21 19:24:09 -03:00
Denis Isidoro
44c4d9551f
Validate variable names ( #29 )
2019-09-21 19:21:46 -03:00
Denis Isidoro
d42d192bdd
Add preview window ( #28 )
...
Fix #21
2019-09-21 18:55:35 -03:00