瀏覽代碼

Expand set of quick-padding functions x4xx?()

Alois Mahdal 8 月之前
父節點
當前提交
a1397ac0ff
共有 1 個檔案被更改,包括 11 行新增2 行删除
  1. 11
    2
      dotfiles/config/bashum/main.bashrc

+ 11
- 2
dotfiles/config/bashum/main.bashrc 查看文件

@@ -738,13 +738,22 @@ alias xoo='xop oo'
738 738
 alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
739 739
 alias poweroff="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl poweroff"
740 740
 
741
-x4x() {
741
+x4xx() {
742 742
     #
743 743
     # Pad text from primary clipboard with 4 spaces; save to C-C clipboard
744 744
     #
745 745
     # ...that is, for inclusion as Markdown verbatim text.
746 746
     #
747
-    xo | pad4 | xii
747
+    xop oo | pad4 | xop ii
748
+}
749
+
750
+x4x() {
751
+    #
752
+    # Pad text from primary clipboard with 4 spaces; save back
753
+    #
754
+    # ...that is, for inclusion as Markdown verbatim text.
755
+    #
756
+    xop -o | pad4 | xop i
748 757
 }
749 758
 
750 759
 BASHUM__RV_TMP="/tmp/bashum-rv"