ソースを参照

Add x4x() to just pad primary clipboard to C-c clipboard

Alois Mahdal 6 年 前
コミット
b3fa34e06c
共有1 個のファイルを変更した9 個の追加0 個の削除を含む
  1. 9
    0
      dotfiles/bash/main.bashrc

+ 9
- 0
dotfiles/bash/main.bashrc ファイルの表示

@@ -367,6 +367,15 @@ alias xoo='xop oo'
367 367
 alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
368 368
 alias poweroff="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl poweroff"
369 369
 
370
+x4x() {
371
+    #
372
+    # Pad text from primary clipboard with 4 spaces; save to C-C clipboard
373
+    #
374
+    # ...that is, for inclusion as Markdown verbatim text.
375
+    #
376
+    xo | pad4 | xii
377
+}
378
+
370 379
 RV_TMP="/tmp/bash-rv"
371 380
 mkdir -p "$RV_TMP"
372 381