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

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

@jrcharney

Description

@jrcharney

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions