Repository navigation
Can the hx command alone open an ephemeral Markdown editor?
#16377
Unanswered
jahinkolin
asked this question in
Q&A
Replies: 2 comments
|
You could use hx() {
if [ "$#" -eq 0 ]; then
local file
file=$(mktemp "${TMPDIR:-/tmp}/hx-scratch-XXXXXX.md") || return
command hx "$file"
local status=$?
rm -f -- "$file"
return "$status"
else
command hx "$@"
fi
}This opens a fresh Markdown file when |
0 replies
|
You can open |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I often use the
hxcommand on it's own to open an editor for taking quick notes on the fly that I don't want to be saved to a file locally. When I close that editor all my edits disappear and I want that. I am wondering if it is possible for thehxcommand run alone to open a Markdown editor rather than a normal one with no markdown LSP.All reactions