AutoYADM commit: 2025-03-22 21:15:07

This commit is contained in:
Daniel Fichtinger 2025-03-22 21:15:07 -04:00
parent b243769d4c
commit 4bb936319c
2 changed files with 9 additions and 6 deletions

View file

@ -76,6 +76,9 @@ A-r = ":config-reload"
A-o = ":config-open" A-o = ":config-open"
A-w = ":config-open-workspace" A-w = ":config-open-workspace"
# execute current file
A-x = ":sh %{buffer_name}"
# Treesitter selections # Treesitter selections
# Left <-> Right: Sibling nodes # Left <-> Right: Sibling nodes
# Up <-> Down: Parent/Child nodes # Up <-> Down: Parent/Child nodes

View file

@ -1,13 +1,13 @@
[[Snippets]] [[Snippets]]
Description = "print the classic message" Description = "mkpy: Edit Python scratch file"
Output = "" Output = ""
Tag = [] Tag = ["python", "scratch"]
command = "echo Hello world!" command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\nprintf '#!/bin/env python\\n\\n' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\""
[[Snippets]] [[Snippets]]
Description = "Edit Python scratch file" Description = "clearpy: Clear Python scratch files."
Output = "" Output = ""
Tag = [] Tag = ["python", "scratch"]
command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\necho '#!/bin/env python' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\"" command = "rm -f /tmp/tmp.*.py"