1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-16 02:41:13 +00:00
Commit Graph

59 Commits

Author SHA1 Message Date
Matthieu PETIOT
38882275b8
Add ^_ mapping to undo in viins mode (#1860)
This allows to cancel a tab completion, as ^_ in emacs mode.
2020-07-30 13:29:59 -07:00
Kaleb Elwert
66b9ea7d44 Update documentation
- Fix an old link to the wrong issue tracker
- Add documentation to the history module about migration from oh-my-zsh

Closes #1766
2020-01-20 07:50:42 -08:00
John P. Neumann
5566a9c792
Resolves 1641 - Checks whether the prompt is set to be managed or not. (#1723)
This is a new variable that will need to be set on all new prompts and
is not backwards compatible with custom prompts that are not prezto
managed, but use prezto's editor-info functionality. Updated the
README.md with additional information for themes.
2019-07-25 17:14:43 -05:00
Yutian Li
d22effbf85 editor: allow alt+arrow keys for word movement (#1688) 2019-02-11 16:21:38 -08:00
Indrajit Raychaudhuri
6f603df7a6 general: Miscellaneous documentation updates
- Add missing documentation for options and environment variables
- Rearrange definition and documentation of 'Options', 'Variables'
  and 'Aliases' in a consistent order
2018-10-12 12:04:49 -05:00
Kaleb Elwert
054eb351f1 Revert "Only call reset-prompt when the appropriate zstyle is set"
This reverts commit 6d00fdf8c8.

As unfortunate as it is, this workaround was a hack and doesn't take
into account prompts like spaceship which don't use $editor_info but
rely on $KEYMAP directly. We'll need to find a more consistent solution
to fix this.
2018-04-06 11:33:02 -07:00
John P. Neumann
6d00fdf8c8 Only call reset-prompt when the appropriate zstyle is set
Resolves issue #1524 (#1548)
2018-02-20 20:36:29 -08:00
Kaleb Elwert
282b478fd2 Add vi-pound-insert as # in vicmd mode
Fixes #1534
2018-01-26 18:14:14 -08:00
Kaleb Elwert
904eef5fa5 Add pound-toggle zle widget to work around the buggy built-in pound-insert
Refs #1533, #1534
2018-01-26 14:52:11 -08:00
Kaleb Elwert
906ac99e20 Move INTERACTIVE_COMMENTS from editor to environment 2018-01-25 12:41:58 -08:00
Maxim Baz
0b62639ad5 Set INTERACTIVE_COMMENTS by default
This allows using # to comment lines in the interactive shell
2018-01-25 12:32:29 -08:00
Kaleb Elwert
8ed2c78de8 editor: Avoid prompt redisplay on completion when there is no indicator
Refs #1512
2017-12-01 10:55:58 -08:00
Kaleb Elwert
79927ac73a editor: Fix Home and End in vicmd mode
Fixes #1160
2017-11-10 11:06:50 -08:00
François VANTOMME
ff9b901394 Set key binding (^space) to expand all aliases including global (#1500) 2017-11-01 17:00:32 -07:00
Samantha McVey
752f64f085 Bind more unbound keys in viins and vicmd to nothing
Unbound keys in viins or vicmd mode have undefined results. Bind
two more of these to nothing to avoid this.
2017-09-17 14:55:22 -07:00
Jeff Widman
e6af5f2e91 Fix typo 2017-08-16 13:52:40 -05:00
Samantha McVey
9f1a41de90 Fix unbound keys in vicmd/viins mode
Previously I made a change to try and bind these unbound keys to the main
keymap in thoughts that in vicmd or viins mode it would fallback if it wasn't
bound in vicmd/viins mode. This turned out not to be the case.

Explicitly bind the keys in both viins and vicmd mode as works properly.
2017-07-24 10:26:19 -07:00
Indrajit Raychaudhuri
ac628c9059 [general] Switch code block formatting to use fence formatting
Changes:
* Indented code block doesn't support syntax highlighting, use fenced
formatting (```) instead for better syntax highlighting
* Wrap commands/functions in backticks
* Typo fixes
2017-07-22 13:11:29 -05:00
Kaleb Elwert
7d109fb3fa [editor] Ensure unbound_keys is defined as an array
Somewhere around zsh 5.1, there was a change which turned typeset (and
most likely local) into a keyword. In older versions of zsh, using
`local x=()` will cause the () to be treated as a glob qualifier.

Fixes #1373
2017-07-10 10:30:23 -07:00
Samantha McVey
e3520b737f [editor] Fix undefined results with unbound keys in viins/vicmd
Bind the remaining unbound keys in the main mode so that they
don't result in undefined functionality when pressed. (Often this
will change the casing of one/most/all of the characters you've
typed or even stranger things). In emacs mode this usually just
inserts a tilde, but this will fix that as well so nothing happens
when unbound keys are pressed.

Since there isn't any binding which does "nothing", create a noop
ZLE widget and bind them to that.

The user or other modules are still able to override these bindings
either by overriding the main keymap or setting a keymap in one
of the other modes which will take precedence over the main fallback.
2017-07-07 14:10:54 -07:00
Samantha McVey
75a60bc7bf [editor] Add bindkey-all function to show all bound keys (#1358)
* [editor] Add bindkey-all function to show all bound keys

Function which allows you to see all the bound keys for all of
the different keymaps. It does accept arguments and passes them
through to bindkey -m "$keymap" so you could set a shortcut to
all keymaps as well if you wished.

Makes it much easier to see and grep what keys are bound to each of
the different keymaps.

When no arguments are given it will print keymap headers to stderr,
if given arguments it will not print anything extra to the screen.

* [editor] Update README to include information about bindkey-all funct.
2017-07-05 23:05:31 -07:00
Samantha McVey
dbe9a5ea28 [editor] set forward/backward word for Ctrl+Right Ctrl+Left
Set forward/backward word to be mapped the same as they are in vim,
instead of having weird functionality when unset.
2017-07-03 17:18:25 -07:00
Samantha McVey
961326f8e9 [editor] Set Delete key in vicmd mode to delete character
Delete key deletes character in vimcmd cmd mode instead of weird
default functionality. The default functionality in vicmd mode
is the Delete key will change the case of many of the characters
on the screen, which is not the default thing that vim does.

This could be confusing and frustrating to users, so set it to delete
a character instead.
2017-06-23 13:37:48 -07:00
Nargoth
1c041c0433 fixed vivisual key binding (#1148)
Fixes #1236
2017-06-19 15:52:54 -07:00
John P. Neumann
412af29808 Merge pull request #1272 from sorin-ionescu/issue/1246-ps-context-config
Adds additional support for PS prompt context expansion
2017-04-11 00:14:08 -05:00
Dario Gjorgjevski
2c1ad5bed1 Avoid unsetting nonexistent variables (#1075) 2017-04-04 21:24:50 -07:00
John P. Neumann
b38ced856a Adds additional support for PS prompt context expansion 2017-04-02 14:09:58 -05:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Sorin Ionescu
9b1f39f267 [Fix #563] Control+Arrow keys are not in the terminfo database 2014-10-09 13:08:21 -04:00
Sorin Ionescu
8f711d64b5 [Fix #594] Remove quotes surrounding associative array key 2014-10-06 23:36:33 -04:00
Sorin Ionescu
abfc4ab6e5 [Fix #648] Do not instruct users to call editor-info 2014-10-06 16:50:03 -04:00
Sorin Ionescu
e1974ad58d [Fix #516] Define ZLE functions separately 2014-01-09 19:58:14 -05:00
Sorin Ionescu
875ce2e56c [Fix #434] Correct ambiguity in the use of the term keymap 2013-05-27 17:23:53 -04:00
Sorin Ionescu
973278140e [Fix #103] Add documentation for editor 2013-05-18 17:05:44 -04:00
Sorin Ionescu
b42479a7c7 Set WORDCHARS in the editor module 2013-04-25 19:05:07 -04:00
Sorin Ionescu
f4d9b32de9 [Fix #351] Set empty keys to an invalid UTF-8 sequence 2013-01-29 14:13:14 -05:00
Sorin Ionescu
a120602dfa [Fix #338] Remove vi jk and kj bindings 2012-12-20 19:02:16 -05:00
Sorin Ionescu
1788d73cd8 [Fix #263, Fix #314] Ensure application mode is valid before use 2012-10-17 18:15:27 -04:00
Sorin Ionescu
52db7bb0f6 [#263, #314] Undo revert of "Ensure that $terminfo values are valid"
This reverts commit ed4e9af9c4.
2012-10-17 18:15:21 -04:00
Sorin Ionescu
141a1ba947 Rename editor-info zstyle patterns 2012-10-02 12:47:20 -04:00
Sorin Ionescu
4711d6ba66 Load external editor support after $key_info definition 2012-09-25 17:31:46 -04:00
Sorin Ionescu
b1b5af23b6 Check for empty values in $key_info properly 2012-09-25 17:27:16 -04:00
Sorin Ionescu
ed4e9af9c4 [Fix #263] Revert "Ensure that $terminfo values are valid"
The VT100 terminal application mode is an old relic that is no longer
needed.

This reverts commit a5f8d04d34.
2012-09-07 22:35:05 -04:00
Sorin Ionescu
ac04921afa Clarify info functions descriptions 2012-09-06 23:17:38 -04:00
Sorin Ionescu
cc7e43b242 [Fix #253] Move Prezto settings into their own file 2012-09-03 16:52:47 -04:00
Sorin Ionescu
fb9a20591f [Fix #197] Rebrand as Prezto
Conflicts:
	README.md
	runcoms/zshenv
2012-09-03 16:51:27 -04:00
Sorin Ionescu
a5f8d04d34 Ensure that $terminfo values are valid 2012-08-04 15:26:13 -04:00
Sorin Ionescu
28a20b48e6 Wrap editor module documentation at 80 characters 2012-08-04 14:52:17 -04:00
Sorin Ionescu
9a52ecb21b Increase heading readability 2012-08-04 14:48:32 -04:00
Sorin Ionescu
060d9064f8 [Fix #202] Load modules all or nothing 2012-08-04 14:32:59 -04:00