Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

βš›πŸ†™πŸ“… Suggestion for better keybindings #11

Open
jrcharney opened this issue Dec 16, 2016 · 0 comments
Open

βš›πŸ†™πŸ“… Suggestion for better keybindings #11

jrcharney opened this issue Dec 16, 2016 · 0 comments

Comments

@jrcharney
Copy link

There's been some changes to the keybinding syntax from .editor to atom-text-editor. So I applied some changes which may be useful for the README.md page.

## Escape Utils keymaps (I hope this works just in the text editor)
# Use this to include code examples such that
#  '<div id="something">You're</div>' becomes
#  '&lt;div id=&quot;something&quot;&gt;You&apos;re&lt;/div&gt;'
# TODO: Apply this to CSS and JavaScript, and JSON
# TODO: Consider 'escape-utils:url-[en|de]code' for 'a[href=""]'
'atom-text-editor[data-grammar="text html basic"]:not([mini])':
  'f6': 'escape-utils:html-encode-maintain-lines'
  'shift-f6': 'escape-utils:html-decode'

Another thing to think about is allowing URL encoding on attributes when applying HTML encoding on elements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant