浏览代码

Add vxx() for editing stdin to C-C/C-V clipboard

Alois Mahdal 5 年前
父节点
当前提交
83c05b561e
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13
    0
      dotfiles/bash/main.bashrc

+ 13
- 0
dotfiles/bash/main.bashrc 查看文件

@@ -446,6 +446,19 @@ xvxx() {
446 446
     xop o | vipe | xop ii
447 447
 }
448 448
 
449
+vxx() {
450
+    #
451
+    # Edit text on stdin and save it to C-C clipboard
452
+    #
453
+    # Ideal for editing outut of command before pasting ot to browser
454
+    # or another GUI application.  Run the command with `vxx`, edit
455
+    # the text, move back to the application and paste it.
456
+    #
457
+    # If you quickly realize you need to re-edit the text, use xvvx().
458
+    #
459
+    vipe | xop ii
460
+}
461
+
449 462
 xcxx() {
450 463
     #
451 464
     # Filter text in primary clipboard using command $@ and save it to C-C clipboard