Parcourir la source

Expand set of quick-padding functions x4xx?()

Alois Mahdal il y a 8 mois
Parent
révision
a1397ac0ff
1 fichiers modifiés avec 11 ajouts et 2 suppressions
  1. 11
    2
      dotfiles/config/bashum/main.bashrc

+ 11
- 2
dotfiles/config/bashum/main.bashrc Voir le fichier

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