Browse Source

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

Alois Mahdal 5 years ago
parent
commit
83c05b561e
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      dotfiles/bash/main.bashrc

+ 13
- 0
dotfiles/bash/main.bashrc View File

@@ -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