If I press Fn + backspace, the character to the right of the cursor is deleted. Is there a keyboard shortcut to insert one space to the right of cursor?
Thanks Ross
On 12 Mar 2014, at 21:45, Ross Ahmed wrote:
If I press Fn + backspace, the character to the right of the cursor is deleted. Is there a keyboard shortcut to insert one space to the right of cursor?
No, but you can make a snippet with content “$0 ”. Then give it a key equivalent (e.g. control-space).
Another approach is to record a macro inserting the space and then pressing arrow left, but this might not always do the expected thing, for example in a soft tabs context where arrow left would move “indent size” characters.
Thanks, recording a macro worked well.
Ross
On 13/03/2014 06:17, "Allan Odgaard" mailinglist@textmate.org wrote:
On 12 Mar 2014, at 21:45, Ross Ahmed wrote:
If I press Fn + backspace, the character to the right of the cursor is deleted. Is there a keyboard shortcut to insert one space to the right of cursor?
No, but you can make a snippet with content ³$0 ². Then give it a key equivalent (e.g. control-space).
Another approach is to record a macro inserting the space and then pressing arrow left, but this might not always do the expected thing, for example in a soft tabs context where arrow left would move ³indent size² characters.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate