Skip to content

Escaping edited file name#98

Merged
chomosuke merged 1 commit intochomosuke:masterfrom
danieltanto:master
Sep 5, 2025
Merged

Escaping edited file name#98
chomosuke merged 1 commit intochomosuke:masterfrom
danieltanto:master

Conversation

@danieltanto
Copy link
Copy Markdown
Contributor

When clicking in the previewed document, the plugin will automatically open the filename of the text that was clicked. If this file name was to contain backtick characters, these would be interpreted as the edit vim command treats backticks as command execution characters. For example,

edit `whoami`

would execute the command whoami.

This change escapes the file name before opening it.

@chomosuke
Copy link
Copy Markdown
Owner

Thank you

@chomosuke chomosuke merged commit 1603d37 into chomosuke:master Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants