Code Monkey home page Code Monkey logo

Comments (3)

robole avatar robole commented on June 19, 2024

hi eysette,

I am not sure how it is possible for there to be an issue! Does it work in the exact same case when you select text? Please try again.

I tested it on my Linux laptop just now and it works fine. The only possibilities I can think of are down to:

  • Working on a file that is not an editable markdown file. Were you working on a brand new, unsaved file perhaps?
  • The snippet is not fired because there is another keybinding for the same key combination. Do you have another keybinding for Ctrl + i?

To give the background. The shortcut is a keybinding to the built-in snippet Insert italic text.. The snippet has this body: *${1:${TM_SELECTED_TEXT}}*$0, which will surround selected text with asterisks. If there is no selected text, it will inserts 2 asterisks and you the cursor will be between the asterisks. The only issue for this shortcut is whether the keybinding triggers the action or not.

To troubleshoot yourself:

  • Test the keybinding fires when you hit Cmd + i, if this works then this extension is doing it job correctly.
  • Test the snippet yourself with a markdown open, run the command Insert Snippet and choose Insert italic text

from vscode-markdown-shortcuts.

eyssette avatar eyssette commented on June 19, 2024

Thanks for your time!
I have the problem both on my Linux Laptop and my iMac.
I have checked keybindings issues (i still have the problem when i change the keybinding).
The snippet works when I run Insert Snippet and choose Insert italic text, even if no text is selected.
But it still doesn't work when no text is selected and i fire the snippet with a keybinding.

On my iMac, an error is displayed : [getWordRangeAtPosition]: ignoring custom regexp '\_?[A-Za-z\u00C0-\u017F]*\_?' because it matches the empty string.

from vscode-markdown-shortcuts.

robole avatar robole commented on June 19, 2024

hi @eyssette

I can't do anything else for you. I can't reproduce the issue.

This extension is just configuration, and nothing has changed in 3 years. It is unlikely an issue with the extension. It is either VS Code has introduced a new issue, or some funky configuration on your end.

I will close the issue for now. If you find out what it is you can let me know.

from vscode-markdown-shortcuts.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.