Revision 0b4223f1d <http://0b4223f1deed8f90f5a424eee313f659e4725c7c> contains 
improved version of extract command. It is very useful command especially 
when manually importing/organizing source files. I guess it wasn't used 
very often for other languages than python. It can now deal with 
javascript, coffeescript, clojure/clojurescript and it can be easily 
extended to support any other language. 

Well, while I write this I have just realized that it is easy to extend it 
for developers not for users. I have hard-coded regex patterns for 
languages I use. It would be much more usable if those patterns are read 
from settings.

Default binding for this command is Ctrl+Shift+D. Here is docstring for 
this command:

Create child node from the selected body text.


   1. If the selection starts with a section reference, the section name 
   become the child's headline. All following lines become the child's body 
   text. The section reference line remains in the original body text.
   2. If the selection looks like a Python class or definition line, the 
   class/function/method name becomes the child's headline and all selected 
   lines become the child's body text.
   3. Otherwise, the first line becomes the child's headline, and all 
   selected lines become the child's body text.

Vitalije

-- 
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 https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to