Re: assign tab to insert four spaces
Jean-Marc Lasgouttes wrote: Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; \bind C-S-q repeat 4 unicode-insert 0x20 Even if we don't right now, I think we should support unicode-insert 0x20 0x20 0x20 0x20. Imagine that you want to insert a unicode string in the command buffer, repeating unicode-insert would be cumbersome... Abdel.
Re: assign tab to insert four spaces
Jean-Marc Lasgouttes wrote: Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; \bind C-S-q repeat 4 unicode-insert 0x20 Even if we don't right now, I think we should support unicode-insert 0x20 0x20 0x20 0x20. Imagine that you want to insert a unicode string in the command buffer, repeating unicode-insert would be cumbersome... Abdel.
Re: assign tab to insert four spaces
Jean-Marc Lasgouttes wrote: Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind "C-S-q" "command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20;" \bind "C-S-q" "repeat 4 unicode-insert 0x20" Even if we don't right now, I think we should support "unicode-insert 0x20 0x20 0x20 0x20". Imagine that you want to insert a unicode string in the command buffer, repeating unicode-insert would be cumbersome... Abdel.
Re: assign tab to insert four spaces
Hello, On 6/20/09, Jean-Marc Lasgouttes lasgout...@lyx.org wrote: But indeed, the syntax for spaces could be problematic. Try putting them into double auotes, if it does not work we'll fix it. Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind C-S-a unicode-insert 0x20 \bind C-S-r space-insert normal # Both fail to insert anything \bind C-S-q unicode-insert 0x20 0x20 0x20 0x20 \bind C-S-w unicode-insert 0x20 unicode-insert 0x20 Are there other approaches to do this? Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind C-S-a unicode-insert 0x20 \bind C-S-r space-insert normal # Both fail to insert anything \bind C-S-q unicode-insert 0x20 0x20 0x20 0x20 \bind C-S-w unicode-insert 0x20 unicode-insert 0x20 Are there other approaches to do this? \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; /Paul
Re: assign tab to insert four spaces
On 6/21/09, Paul A. Rubin ru...@msu.edu wrote: \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; Works sweet. Thank you Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: assign tab to insert four spaces
Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; \bind C-S-q repeat 4 unicode-insert 0x20 JMarc
Re: assign tab to insert four spaces
Hello, On 6/20/09, Jean-Marc Lasgouttes lasgout...@lyx.org wrote: But indeed, the syntax for spaces could be problematic. Try putting them into double auotes, if it does not work we'll fix it. Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind C-S-a unicode-insert 0x20 \bind C-S-r space-insert normal # Both fail to insert anything \bind C-S-q unicode-insert 0x20 0x20 0x20 0x20 \bind C-S-w unicode-insert 0x20 unicode-insert 0x20 Are there other approaches to do this? Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind C-S-a unicode-insert 0x20 \bind C-S-r space-insert normal # Both fail to insert anything \bind C-S-q unicode-insert 0x20 0x20 0x20 0x20 \bind C-S-w unicode-insert 0x20 unicode-insert 0x20 Are there other approaches to do this? \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; /Paul
Re: assign tab to insert four spaces
On 6/21/09, Paul A. Rubin ru...@msu.edu wrote: \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; Works sweet. Thank you Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: assign tab to insert four spaces
Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind C-S-q command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; \bind C-S-q repeat 4 unicode-insert 0x20 JMarc
Re: assign tab to insert four spaces
Hello, On 6/20/09, Jean-Marc Lasgoutteswrote: > But indeed, the syntax for spaces could be problematic. Try putting them into > double auotes, if it does > not work we'll fix it. > Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind "C-S-a" "unicode-insert 0x20" \bind "C-S-r" "space-insert normal" # Both fail to insert anything \bind "C-S-q" "unicode-insert 0x20 0x20 0x20 0x20" \bind "C-S-w" "unicode-insert 0x20 unicode-insert 0x20" Are there other approaches to do this? Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Having checked the User's Guide and LyX functions manuals, I do have some success in inserting one space (via unicode characters), but I cannot think of a way to insert several unicode characters in one go. # Successfully inserts one space \bind "C-S-a" "unicode-insert 0x20" \bind "C-S-r" "space-insert normal" # Both fail to insert anything \bind "C-S-q" "unicode-insert 0x20 0x20 0x20 0x20" \bind "C-S-w" "unicode-insert 0x20 unicode-insert 0x20" Are there other approaches to do this? \bind "C-S-q" "command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20;" /Paul
Re: assign tab to insert four spaces
On 6/21/09, Paul A. Rubinwrote: > \bind "C-S-q" "command-sequence unicode-insert 0x20; unicode-insert 0x20; > unicode-insert > 0x20; unicode-insert 0x20;" > Works sweet. Thank you Liviu -- Do you know how to read? http://www.alienetworks.com/srtest.cfm Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: assign tab to insert four spaces
Le 21 juin 09 à 17:19, Paul A. Rubin a écrit : \bind "C-S-q" "command-sequence unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20; unicode-insert 0x20;" \bind "C-S-q" "repeat 4 unicode-insert 0x20" JMarc
Re: assign tab to insert four spaces
Le 19 juin 09 à 23:16, rgheck a écrit : Liviu Andronic wrote: Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. But indeed, the syntax for spaces could be problematic. Try putting them into double auotes, if it does not work we'll fix it. JMarc
Re: assign tab to insert four spaces
Le 19 juin 09 à 23:16, rgheck a écrit : Liviu Andronic wrote: Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. But indeed, the syntax for spaces could be problematic. Try putting them into double auotes, if it does not work we'll fix it. JMarc
Re: assign tab to insert four spaces
Le 19 juin 09 à 23:16, rgheck a écrit : Liviu Andronic wrote: Dear all, I would like to assign "" (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. But indeed, the syntax for spaces could be problematic. Try putting them into double auotes, if it does not work we'll fix it. JMarc
assign tab to insert four spaces
Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. Thank you Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. rh
assign tab to insert four spaces
Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. Thank you Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Dear all, I would like to assign (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. rh
assign tab to insert four spaces
Dear all, I would like to assign "" (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. Thank you Liviu
Re: assign tab to insert four spaces
Liviu Andronic wrote: Dear all, I would like to assign "" (four spaces) to a key binding, but I am not sure whether LyX allows anything similar. In case you think of this, I do not intend to use such a binding to finger paint LaTeX documents; I would more need to use it in ERT code (or in Scrap env) to easily properly align R code in Sweave documents. Please let me know if this can be achieved in LyX. You can do whatever you like with keybindings. See the Shortcuts pane of the Preferences dialog. rh