Browse Source

Expand set of quick-padding functions x4xx?()

Alois Mahdal 8 months ago
parent
commit
a1397ac0ff
1 changed files with 11 additions and 2 deletions
  1. 11
    2
      dotfiles/config/bashum/main.bashrc

+ 11
- 2
dotfiles/config/bashum/main.bashrc View File

738
 alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
738
 alias reboot="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl reboot"
739
 alias poweroff="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl poweroff"
739
 alias poweroff="echo -n . ; sync ; echo -n . ; sync ; echo -n . ; systemctl poweroff"
740
 
740
 
741
-x4x() {
741
+x4xx() {
742
     #
742
     #
743
     # Pad text from primary clipboard with 4 spaces; save to C-C clipboard
743
     # Pad text from primary clipboard with 4 spaces; save to C-C clipboard
744
     #
744
     #
745
     # ...that is, for inclusion as Markdown verbatim text.
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
 BASHUM__RV_TMP="/tmp/bashum-rv"
759
 BASHUM__RV_TMP="/tmp/bashum-rv"