Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Support Markdown files .md #70

Open
softwarecreations opened this issue Jun 4, 2020 · 0 comments
Open

Support Markdown files .md #70

softwarecreations opened this issue Jun 4, 2020 · 0 comments

Comments

@softwarecreations
Copy link

softwarecreations commented Jun 4, 2020

Summary

Very simple feature request, add support for .md (markdown files).
No need to parse anything, when we press Ctrl-Q literally just
Pseudo code for logic

const selection = currentSelection ? currentSelection : currentLine;
if (selectionHasNoQuotes) {
   add first quote char around selection;
} else {
   cycle quote chars around selection;
}

Motivation

Make it easier to edit markdown files.

Additional context

I've added this to my config.cson

".md.source":
  "toggle-quotes":
    quoteCharacters: "\"'`*_"

So you can cycle the selection between

  • Double quotes
  • Single quotes
  • Backticks
  • Bold
  • Italic
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