On Sun, Aug 15, 2010 at 6:16 PM, Sam Hartsfield <[email protected]> wrote:
> On Aug 13, 1:26 am, Sam Hartsfield <[email protected]> wrote: >> First, Ctrl-Backspace and Ctrl-Delete. I didn't realize how much I >> used these until they stopped working like I expected. I found the >> "kill-word" and "backward-kill-word" commands by looking in >> leoSettings.leo, but it seems to leave behind punctuation characters >> and whitespace. I tried to think of how this would be useful, but >> didn't come up with anything. Perhaps someone could explain? Are other >> people simply not used to Ctrl-Backspace the way I am? Probably. I had not been using tab and shift-tab with selections before Ville added them: now I couldn't live without them. > I finally got something basic working. It's not particularly > "smart" (and I'm undecided as to whether I want it to be), but it > seems to work more or less in the same way as most editors. I used the > word "delete" instead of kill, since it shouldn't copy deleted text to > the kill ring / clipboard. It calls the code used by Ctrl- arrow keys > for word movement. [snip] > I'd appreciate any comments on the code Excellent work. You have defined two new command names, so the new code will not conflict in any way with existing code. People will be free to use old bindings if they like. The code appears to be properly undoable. This should be in Leo's core. > I should use beforeChangeNodeContents, but that didn't work correctly. The undo-typing commands might be a bit smoother, but that's a nit. I'll put this in asap. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
