Re: Using leo for documentation (rst3 html)
The Repeats: It is to perform a command when the user stops typing, right? --If the user has not type, nothing is done. --If the user has typed, then the timer starts. If there was a timer already, it's just reset to the delay time. --when the timer fires, the command is executed. just checking thanks Todd since I initiated this thing. -- 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Re: Using leo for documentation (rst3 html)
On Mon, 7 Jul 2014 09:59:09 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: The Repeats: It is to perform a command when the user stops typing, right? --If the user has not type, nothing is done. --If the user has typed, then the timer starts. If there was a timer already, it's just reset to the delay time. --when the timer fires, the command is executed. just checking thanks Todd since I initiated this thing. That was basically what it did, I just updated https://github.com/leo-editor/snippets/blob/master/on_typing_idle.py with these changes: https://github.com/leo-editor/snippets/commit/ab239e1 so that's now exactly what it does, or exactly what I expect it to do, not tested :-) Cheers -Terry -- 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Re: Using leo for documentation (rst3 html)
On Tue, Jul 1, 2014 at 1:39 PM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Tue, 1 Jul 2014 10:54:25 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: I've found a delay timer to execute code is very useful. For example, if I stopped typing for 5 seconds, It would execute 'Alt-X Ctrl-P' and execute the last command which in my case is to produce my HTML (rst3) so I can look at it. Ha, interesting idea. Another brilliant idea from Leo's users. This would make a good extension to Ctrl-P (repeat-complex-command):: Alt-x whatever repeat-complex-command-repeatedly :-) Ctrl-G (keyboard-quit) would presumably cancel the repeats. Terry, do you want to do this, or should I? 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Re: Using leo for documentation (rst3 html)
On Wed, 2 Jul 2014 10:44:08 -0500 Edward K. Ream edream...@gmail.com wrote: On Tue, Jul 1, 2014 at 1:39 PM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: On Tue, 1 Jul 2014 10:54:25 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: I've found a delay timer to execute code is very useful. For example, if I stopped typing for 5 seconds, It would execute 'Alt-X Ctrl-P' and execute the last command which in my case is to produce my HTML (rst3) so I can look at it. Ha, interesting idea. Another brilliant idea from Leo's users. This would make a good extension to Ctrl-P (repeat-complex-command):: Alt-x whatever repeat-complex-command-repeatedly :-) Ctrl-G (keyboard-quit) would presumably cancel the repeats. Terry, do you want to do this, or should I? You saw what I posted here: https://github.com/leo-editor/snippets/blob/master/on_typing_idle.py so it would just be a matter of packaging - I would think the turn off would have to be more specific than Ctrl-G, which the user may be using for other things. Also might be more useful to allow something other than just repeat-complex-command, seeing the user may be using that for other things too. Seemed that the use case was: Edit a document using any of Leo's features including Alt-X and Ctrl-G (potentially), and, when no typing has occurred for a set time, run a command or script or something *once* to render the doc. I have no plans to do more with it, the script I posted could be used to make a couple of buttons to start and stop the monitoring. Cheers -Terry 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Re: Using leo for documentation (rst3 html)
On Wed, Jul 2, 2014 at 10:52 AM, 'Terry Brown' via leo-editor leo-editor@googlegroups.com wrote: You saw what I posted here: https://github.com/leo-editor/snippets/blob/master/on_typing_idle.py Yes. so it would just be a matter of packaging - I would think the turn off would have to be more specific than Ctrl-G, which the user may be using for other things. Also might be more useful to allow something other than just repeat-complex-command, seeing the user may be using that for other things too. I agree. It's a matter of packaging, and maybe also finding the simplest, most useful generalization. Seemed that the use case was: Edit a document using any of Leo's features including Alt-X and Ctrl-G (potentially), and, when no typing has occurred for a set time, run a command or script or something *once* to render the doc. I have no plans to do more with it, the script I posted could be used to make a couple of buttons to start and stop the monitoring. Hmm. Let's think a little more about this. Certainly the rst use case would be handled naturally by buttons. Perhaps there is no need to go beyond that. For example, one could always create an idle-time hook if desired. And maybe repeat-complex-command-repeatedly isn't going to be useful very often. Still, I think this idea *might* apply in other situations. I'll keep it in the back of my mind... 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Using leo for documentation (rst3 html)
HI, I'm trying to use Leo for documentation, memoes, etc. using rst3 One hassle: how do you do columnar editing mode? On Windows it is hold down ALT key while using the mouse for columnar copy paste etc. Another request! I've found a delay timer to execute code is very useful. For example, if I stopped typing for 5 seconds, It would execute 'Alt-X Ctrl-P' and execute the last command which in my case is to produce my HTML (rst3) so I can look at it. This would help editing, making it more interactive editing in the rst3. Thanks, having fun. Todd. -- 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
Re: Using leo for documentation (rst3 html)
On Tue, 1 Jul 2014 10:54:25 -0700 (PDT) Todd Mars tamn...@gmail.com wrote: Another request! I've found a delay timer to execute code is very useful. For example, if I stopped typing for 5 seconds, It would execute 'Alt-X Ctrl-P' and execute the last command which in my case is to produce my HTML (rst3) so I can look at it. This would help editing, making it more interactive editing in the rst3. Ha, interesting idea. https://github.com/leo-editor/snippets/blob/master/on_typing_idle.py executes `g.es('do stuff')` whenever 5 seconds passes since the last keystroke in the body editor. Cheers -Terry -- 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 post to this group, send email to leo-editor@googlegroups.com. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.