Bug 423219 - Vi Keybindings - '.' should repeat previous edit
Summary: Vi Keybindings - '.' should repeat previous edit
Status: NEW
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Editor (show other bugs)
Version: 4.0   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2013-12-04 14:17 EST by Stephen Jahns CLA
Modified: 2015-10-10 18:26 EDT (History)
3 users (show)

See Also:
s.t.jahns: review? (ken_walker)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Jahns CLA 2013-12-04 14:17:14 EST
examples:

Insert 'hello', after escaping to normal mode, hitting '.' should insert 'hello' at the current caret position.

Change the next word to 'hello with 'cwhello', after escaping to normal mode, hitting '.' should replace the next word at the current caret position with 'hello.

Closely related: prefix number should repeat text edits, eg '3ihello' should insert 'hellohellohello', '3Ahello' should append 'hellohellohello' to the end of the current line, etc.
Comment 1 Stephen Jahns CLA 2013-12-04 14:24:45 EST
I have an implementation here - https://github.com/stjahns/orion.client/commit/aa6ce7ae6e77cfc82c409c6d6898041f3039aaa5

This feature will need to be revisited once text range ops, visual mode, and replace modes are in. (they are still pending review)
Comment 2 Dmitry Shindyalov CLA 2015-10-10 18:26:16 EDT
I am looking into this.