Advanced text editing commands

Richard Kimberly Heck rikiheck at gmail.com
Thu Apr 27 22:15:10 UTC 2023


On 4/27/23 14:54, R. H. van der Gaag wrote:
> I would like to be able to select, change, and delete around a word 
> and a sentence, like I can in Vim.

Can you explain in more detail how that works?


> And to do a ‘light speed’ jump to any part of the visible text by 
> typing some shortcut and then typing the first two letters of the word 
> I want to jump to; in Vim, and in Obsidian (using a plugin) the 
> matches are then marked with a letter, and hitting that letter takes 
> me there. 

Something like this could be possible. A first step would be to have a 
'mark all matches' sort of functionality for find. Then we'd need the 
ability to restrict a find to the start of a word. (You could do that 
with the 'advanced' find feature, which permits regular expressions, 
too.) Then one could add the matches to the outliner and figure out some 
way to make the 'hitting a letter' thing work. It's doable, but would 
take work. Perhaps you could file an enhancement request?


> On top of that, going back and forward through the locations where my 
> cursor has been placed, 

This actually does not sound hard. We would just need (a) to save these 
locations and (b) to make it possible to iterate through the list via 
some LFUNs.


> and like you say, persistent undo would be wonderful. 

I've initiated some discussion of a related bug. If we could fix that 
one, then probably it would not be hard to save the undo stack.

Riki




More information about the lyx-users mailing list