You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<y,t> ViYankToBeforeChar Yanks until given character forward.
<y,T> ViYankToBeforeCharBackward Yanks until given character backward.
<y,f> ViYankToChar Yanks inclusively until given character forward.
<y,F> ViYankToCharBackward Yanks inclusively until given character backward.
If one wanted to implement this functionality using only methods from PSReadline, how would you programmatically access the register which is used in command mode to store the yanked text? I mean in the same way one can access the kill ring using only the psconsolereadline class.
I am not sure. How are y0 and y$ implemented? Shouldn't be the same? First find a position of the searched character and then yank from current position to the found position?
Konstantin Glukhov (@Konstantin-Glukhov) Thanks for the reply. My problem in particular is that I cannot find, looking at the documentation, a psreadline method like
Implementing the motions seems already possible with the available methods, but it seems it is not possible to directly access the place where text is yanked. I'm happy to be proven wrong, though.
Activity
matteocoder commentedon Nov 3, 2023
If one wanted to implement this functionality using only methods from PSReadline, how would you programmatically access the register which is used in command mode to store the yanked text? I mean in the same way one can access the kill ring using only the psconsolereadline class.
Konstantin-Glukhov commentedon Nov 7, 2023
I am not sure. How are y0 and y$ implemented? Shouldn't be the same? First find a position of the searched character and then yank from current position to the found position?
matteocoder commentedon Nov 7, 2023
Konstantin Glukhov (@Konstantin-Glukhov) Thanks for the reply. My problem in particular is that I cannot find, looking at the documentation, a psreadline method like
Implementing the motions seems already possible with the available methods, but it seems it is not possible to directly access the place where text is yanked. I'm happy to be proven wrong, though.
Konstantin-Glukhov commentedon Nov 7, 2023
Did you find how <y,$> is implemented?
matteocoder commentedon Nov 7, 2023
Not yet. I know nothing about C#, so it's kind of hard for me.
EDIT: the text is pasted to a private
_viRegister, so it seems like it's not accessible from outside.