commit 21f2a65e6129ad7f7ceecc962749e2d82d037b38
Author: jeromenerf <[email protected]>
Date:   Mon Sep 11 20:02:49 2017 +0200

    [st] fix code blocks syntax for right click to plumb patch

diff --git a/st.suckless.org/patches/right_click_to_plumb/index.md 
b/st.suckless.org/patches/right_click_to_plumb/index.md
index 2a653a52..87ff1cb5 100644
--- a/st.suckless.org/patches/right_click_to_plumb/index.md
+++ b/st.suckless.org/patches/right_click_to_plumb/index.md
@@ -11,37 +11,33 @@ The shell current working directory is set by the shell via 
`OSC 7` (borrowed fr
 
 For zsh :
 
-```sh
-__vte_urlencode() (
-  # This is important to make sure string manipulation is handled
-  # byte-by-byte.
-  LC_ALL=C
-  str="$1"
-  while [ -n "$str" ]; do
-    safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}"
-    printf "%s" "$safe"
-    str="${str#"$safe"}"
-    if [ -n "$str" ]; then
-      printf "%%%02X" "'$str"
-      str="${str#?}"
-    fi
-  done
-)
-
-__vte_osc7 () {
-  printf "]7;%s%s" "${HOSTNAME:-}" "$(__vte_urlencode "${PWD}")"
-}
-
-[ -n "$ZSH_VERSION"  ] && precmd_functions+=(__vte_osc7)
-```
+               __vte_urlencode() (
+                 # This is important to make sure string manipulation is 
handled
+                 # byte-by-byte.
+                 LC_ALL=C
+                 str="$1"
+                 while [ -n "$str" ]; do
+                       safe="${str%%[!a-zA-Z0-9/:_\.\-\!\'\(\)~]*}"
+                       printf "%s" "$safe"
+                       str="${str#"$safe"}"
+                       if [ -n "$str" ]; then
+                         printf "%%%02X" "'$str"
+                         str="${str#?}"
+                       fi
+                 done
+               )
+
+               __vte_osc7 () {
+                 printf "]7;%s%s" "${HOSTNAME:-}" "$(__vte_urlencode 
"${PWD}")"
+               }
+
+               [ -n "$ZSH_VERSION"  ] && precmd_functions+=(__vte_osc7)
 
 The patch itself only adds a `cwd` global and a button3 entry that will run a 
shell, change directory to cwd and run the plumber with the primary selection. 
Maybe I should use pass cwd as an argument too, like plan9 plumber does.
 
 The plumbing program can be defined via `config.h`: 
 
-```h
-static char plumber[] = "plumb.sh";
-```
+               static char plumber[] = "plumb.sh";
 
 ## Download
 


Reply via email to