Activity is now locked.
Responses are not accepted at this time.
How will you combine multiple "keystrokes"?
-
Commands should have a shouldCombine method to determine if two commands should be combined. If true, the method combine should be used to add a command to the last command on the stack. shouldCombine can filter by word boundary, fox example, to make commands that undo per-word.Over 12 years ago
-
When a character is typed, look through the stack for other single characters, then combine them into a single command.Over 12 years ago
-
Fill a queue with the keystrokes until a blank character is reacgedOver 12 years ago
-
The stack stores each word depending on when a space was inserted. It would have to take into account the first word (which has no space before it) and the last word (which has no space after it).Over 12 years ago
-
Every time a space occurs, every time another command is used, or after a certain timeout.Over 12 years ago
-
CRLF or \n as well.Over 12 years ago
-
Use space as a delimiter or in code, you could use the { } respectively to undo entire lines.Over 12 years ago
-
It will undo until it finds a space characterOver 12 years ago
-
a legacy is a religious pathOver 12 years ago
Powered by