Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing YAML => KDL conversion with backslash hotkey. #1879

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

noyez
Copy link
Contributor

@noyez noyez commented Oct 28, 2022

Previously if the hotkey of backslash was used the yaml => kdl conversion would create a KDL statement like so: bind "\" {...}. That is incorrect kdl syntax since the backslash escapes the following quote character. A way to get proper KDL is bind r"\" {...}. This commit changes if the old HotKey is a backslash a properly creates KDL syntax to address the backslash character.

This PR is meant to address : #1850

Previously if the hotkey of backslash was used the yaml => kdl
conversion would create a KDL statement like so: `bind "\" {...}`.
That is incorrect kdl syntax since the backslash escapes the following
quote character. A way to get proper KDL is `bind r"\" {...}`. This
commit changes if the old HotKey is a backslash a properly creates KDL
syntax to address the backslash character.
@noyez noyez temporarily deployed to cachix October 31, 2022 16:48 Inactive
@noyez noyez temporarily deployed to cachix November 2, 2022 14:56 Inactive
Copy link
Member

@imsnif imsnif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

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