Repository navigation
Merge key mapping with key bindings - #715
Merged
Merged
Conversation
tompng
force-pushed
the
merge_mapping_bindings
branch
2 times, most recently
from
June 5, 2024 05:02
55db8dc to
2c2bb1f
Compare
tompng
force-pushed
the
merge_mapping_bindings
branch
2 times, most recently
from
June 11, 2024 16:54
02664be to
209a372
Compare
tompng
force-pushed
the
merge_mapping_bindings
branch
4 times, most recently
from
November 27, 2024 04:49
1a4466d to
8dd9a20
Compare
tompng
marked this pull request as ready for review
November 27, 2024 05:34
tompng
force-pushed
the
merge_mapping_bindings
branch
2 times, most recently
from
November 28, 2024 13:23
83943ef to
51e578a
Compare
tompng
force-pushed
the
merge_mapping_bindings
branch
from
December 6, 2024 06:47
51e578a to
aac77dc
Compare
…e sequence to symbol)
tompng
force-pushed
the
merge_mapping_bindings
branch
from
December 6, 2024 06:56
aac77dc to
0cf6a8e
Compare
matzbot
pushed a commit
to ruby/ruby
that referenced
this pull request
Dec 6, 2024
key_bindings(escape sequence to symbol) (ruby/reline#715) ruby/reline@6a7e249374
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #713
Fourth step of #708
Combines KeyActor::XXX_MAPPING(single byte to method symbol) with key_bindings(escape sequence to method symbol)
This will simplify the implementation of keys in LineEditor.
We can remove
key.instance_of?(String)key.is_a?(Symbol)check.Reline::Key structure will be simple.
Future refactor
Key can contain string.
This means we can assign bracketed-pasted string to a key.
bracketed_pasteandquoted_insertwill be simple.Simplifies bracketed-paste and completion handling, undo-redo handling. Simplifies quoted_insert waiting_proc mechanism and fixes bug.
Implementing compress-meta will be significantly easy.