Compare commits

..

No commits in common. "e11085ca91d1d0f4506fc7dd95225f975acc892e" and "2e29cb829279ce4370ea314c47b91c3e587f9e7c" have entirely different histories.

3 changed files with 1 additions and 12 deletions

1
.gitignore vendored
View File

@ -83,7 +83,6 @@ dkms.conf
# Dotenv
.env
.bash_history
.bash_aliases/private
.bashrc.d/private
desg/

View File

@ -57,9 +57,6 @@ def code_inline():
def code():
return code_inline() or code_block()
def slugify(text):
return re.sub('\s+', '-', text.lower())
def linkify(text, link):
return f"[{text}]({link})"
@ -744,12 +741,6 @@ for i in range(int(match.group(1)), int(match.group(2)) + 1):
`
endsnippet
snippet "sec([\sA-z]+)" "Link section titled ..." r
`!p
snip.rv = "* " + linkify(match.group(1), f"{snip.basename}_{slugify(match.group(1))}")
`
endsnippet
snippet cp(\d+) "Comment current page (and date)" r
`!p snip.rv = "<!--" + datetime.now().strftime("%Y-%m-%d") + " p. " + match.group(1) + "-->"`
endsnippet

View File

@ -3,7 +3,6 @@
import XMonad
import XMonad.Actions.CopyWindow (copyToAll, killAllOtherCopies)
import XMonad.Actions.FloatSnap
import Control.Monad (liftM2)
import XMonad.Hooks.DynamicProperty
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDocks
@ -61,7 +60,7 @@ pp =
-- Workspaces & screens {{{
-- Shift to workspace and view workspace
shiftAndView = doF . liftM2 (.) W.greedyView W.shift
shiftAndView id = doF (W.view id) <> doF (W.shift id)
-- }}}