如何在TextMate 1.5中“选择返回第一个非空白字符”?

时间:2014-07-02 15:42:15

标签: textmate

a nice advice之后,我能够在TextMate 1.5中创建一个“转到第一个非空白字符”的宏。

现在我想进一步改进它,以便“从当前点向上选择直到第一个非空白字符”,即在此行中如果光标刚好在“§”之后,它会选择:Now I'd like to improve it further, in order to "select back from current point up until the first non-whitespace character", i.e. in this line if the cursor was just after the "§

该建议中使用的技巧在这里没有用,因为一旦你“搜索”了第一个非空白字符,你就会失去选择。任何线索?

1 个答案:

答案 0 :(得分:0)

如果您使用的是TextMate 2,则可以启用缩进感知移动,选择和删除。

有关详细信息,请参阅https://github.com/textmate/textmate/wiki/Hidden-Settings#keybindings