This Engineering Notebook post reminds Leonistas that you can easily create 
interactive commands using the *c.interactive* helpers. *CheatSheet.leo* 
mentions 
these helpers, but a more detailed discussion is timely.


#3649 <https://github.com/leo-editor/leo-editor/issues/3649> suggests 
creating an interactive *summary* command. The command prompts the user for 
a regex and returns a sorted list of all *unique* matches. I discovered the 
need for this command while studying the code for Ruff Format.


The first comment of #3649 
<https://github.com/leo-editor/leo-editor/issues/3649> contains prototype 
code for the summarize command. The script prompts the user for a regular 
expression and then creates a top-level node containing the summary.


*Summary*


The summary command is more concise than the find-all and cff commands. I 
use summaries to suggest further cffs.


Leonistas can easily create similar commands using c.interactive1, 
c.interactive2, and c.interactive3.


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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/7dd57571-6786-42e2-851f-627b2f93c3a9n%40googlegroups.com.

Reply via email to