我正在寻找一种在 TextMate 中所选文本的每一行上方插入一行文本的方法。
有谁知道如何编写命令或片段来做到这一点?
示例,选定的文本:
This is line 1
This is line 2
This is line 3
This is line 4
我想在所选的每一行上方插入以下内容:
--我是一个插入的行--
这将导致以下结果:
-
-im an inserted line--
This is line 1
--im an inserted line--
This is line 2
--im an inserted line--
This is line 3
--im an inserted line--
This is line 4
这可以使用 *NIX 命令完成,然后我可以设置一个 TextMate 命令来执行此操作吗?