Add support to repeat commands
See original GitHub issueTokens and selection are treated on a text level
take air three times
=> Selects the token air and the next two instances of the same text
clear this twice
=> Clears the current selection and the next instance of the same text
take first word twice
=> Selects the first sub word and the next instance of the same text
take air past bat twice
=> Selects the range and the next instance of the same text
More complex scope and selection types are treated by order
take line air twice
=> Selects the line containing air and the next line below
take funk twice
=> Selects the current function and the next one below
To make this implementation feasible we probably need the new object oriented targets.
In the meantime there is an “ad hoc” solution to try: https://github.com/AndreasArvidsson/andreas-talon/blob/master/apps/vscode/vscode_take_word.talon
Ponderings:
- Should we have a grammar to go in the opposite direction?
take air last three times
- Should be try to align repeater commands with the user via a capture function or a csv file?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (9 by maintainers)
Top GitHub Comments
I have no objections that the implementation needs to be aware of the action. Everything to make it as intuitive and fluent as possible.
Yes in many cases it does the same thing.