Command history is a super addition to Leo.  A "complex" command is a 
command you enter using <alt-x>command-name<return>. Leo remembers all 
complex commands you invoke in a history list.

After <alt-x>, you can use the up and down arrow keys to scroll through the 
history list. Hit return when you find the desired command.

This morning I realized we can greatly improve the history list in two ways:

1. @button/@command nodes will add their commands to the history list.

So simple.  So natural.

As a special case, an *empty* @button or @command node whose headline is an 
existing command should also add that command to the history list. Not only 
is this a natural way to add items to the history list, it eliminates an 
unbounded recursion if the command name created by the node already exists.

Just as it is now, command history reduces the need to bind keystrokes to 
commands.  Predefined entries in the history list will reduce the need for 
"specialty" bindings even further.  Very important for power users.

2. Add a new command: repeat-command-in-history.  This will enter the 
minibuffer and show all history commands in a tab in the log pane, just as 
with tab completion.  The command will support tab completion limited only 
to the commands in the history list.

Again, this should be extremely useful for power users.  I'll likely bind 
Ctrl-P to repeat-command-in-history instead of repeat-complex command.

Coming asap. It's too good not to have. These features will give IPython a 
run for its money...

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to