1
0
Fork 0
mirror of synced 2024-11-26 17:25:35 -05:00
Commit graph

19 commits

Author SHA1 Message Date
Eric Nielsen
5b90c96cd1 Update modules' README.md
Stick with the following style:

* Header 1 with the module name is in `lowercase`.
* Other headers are in `Sentence case`. Common header names that should
  be consistently used are `Aliases`, `Contributing`, `Functions`,
  `Settings`, and `Zsh options`.
* The names `Zim` and `Zsh` always appear capitalized, even in the
  middle of sentences.
* Prefer

      print 'code indented with 4 spaces'

  instead of
  ```zsh
  print 'code fenced by lines with three back-ticks'
  print 'unless you want syntax highlighting'
  ```
2018-12-17 14:11:16 -05:00
Eric Nielsen
13ba167baf [input] Put necessary double quotes back
My fault, I removed them in commit 78611457, but they are necessary.
Without them, we are getting the following error when one of the
terminfo[] values is empty:

    init.zsh:14: bad set of key/value pairs for associative array

Fixes #310
2018-11-21 17:54:24 -05:00
Eric Nielsen
e7275a9758
[input] Update README.md 2018-05-17 09:01:04 -05:00
Eric Nielsen
d371d80af2
Unify the for syntax
For short single commands, prefer a one-liner `for` with the zsh syntax:
```
for x (foo bar) print ${x}
```
Otherwise just place `; do` on the same line as the POSIX `for ... in`:
```
for x in foo bar; do
  print ${x}
done
```

Closes #268
2018-04-25 08:59:19 -05:00
Eric Nielsen
5768625356 [input] We also need the echoti feature of zsh/terminfo 2018-04-18 17:24:48 -05:00
Eric Nielsen
78611457f2 [input] Only load terminfo feature of zsh/terminfo
and use `-F` to check if the feature was not already loaded before.

Use terminfo elements for Backspace and Delete. Sort by terminfo element
keys.

Also simplify code, removing unnecessary double quotes, and replacing
if-then-fi with one command by one-liners.
2018-04-13 15:23:53 -05:00
Eric Nielsen
26dce76d28
[input] Use custom expand-or-complete in zsh < 5.3
as `expand-or-complete-with-redisplay` was added to fix an issue
reported with zsh 5.2 when completing with <Tab><Tab><Ctrl-C>. See #85.

Fixes #134. Closes #256
2018-04-13 15:15:54 -05:00
Xiao-Ou Zhang
d91d9e3efe [input] Fix typo in README
Closes #102
2016-12-01 23:51:59 -08:00
Eric Nielsen
7519f17645 [input] fix prompt after <Tab><Tab><Ctrl-C>
The issue is fixed by adding `zle redisplay` after `zle
expand-and-complete` for the expand-and-complete key binding. An
additional `print -n '...'` is also included to show an indicator while
the menu is loading, and that is purely cosmetic.

There's still one glitch: the prompt jumps one line up after
<Tab><Tab><Ctrl-C>. This was observed in Prezto too.

Fixes #85, closes #89
2016-10-25 16:13:49 -07:00
Juraj Fiala
a1341265b9 [input] Add PageUp/Down to navigate history
Incredibly useful when combined history-substring-search and/or a laptop keyboard.

Closes #72
2016-08-15 23:14:54 -07:00
Laurentiu Nicola
8a4413f2ec [input] Fix parse error old zsh versions
Closes #61, closes #62.
2016-06-22 16:09:03 -07:00
Matt Hamilton
7439df5836 [input] add double-dot expansion option
Closes #49
2016-05-20 20:25:04 -07:00
Matt Hamilton
aef41e25c5 [input] check for null bindkey values
Only bind keys if length of var > 0

Hopefully these are the only keys that will require this testing. If
anyone encounters issues like issue #17 with additional keys, please
create an issue.

Closes #17
2016-01-09 05:27:55 -05:00
Matt Hamilton
41c4ce7718 variable scoping 2015-12-30 10:00:56 -05:00
Matt Hamilton
641ade3fbd fix bindkeys
this fixes the ctrl+arrowkey binds, as well as the binds for Home and
End.
2015-12-29 09:11:17 -05:00
Matt Hamilton
a1a56ac63f use consistent variable style 2015-12-19 09:48:29 -05:00
Matt Hamilton
d431cbd338 fix documentation typo 2015-12-16 17:35:46 -05:00
Matt Hamilton
f32e763604 rename and fix input docs 2015-12-16 01:23:31 -05:00
Matt Hamilton
6ca71da68d update documentation and enable input module by default 2015-12-16 01:22:33 -05:00