Giter VIP home page Giter VIP logo

Comments (8)

troy351 avatar troy351 commented on May 29, 2024

It's not supported yet.

Since Monaco Editor was not VSCode, And there is no way to bind custom keyboard shortcuts for commands AFAIK, I think adding commands to Command Palette was not that needed.

from emmet-monaco-es.

rizrmd avatar rizrmd commented on May 29, 2024

Maybe we can do that manually using executeEdit api ?

from emmet-monaco-es.

troy351 avatar troy351 commented on May 29, 2024

I can expose internal emmet api, and maybe you could add this command yourself?

from emmet-monaco-es.

troy351 avatar troy351 commented on May 29, 2024

What I really want to say is:

Select code + open Command Palette + select your command + typing emmet code

VS

Typing and expand emmet code + select code you want to wrap + drag & drop to the target position

I think the second one is way more better and faster

from emmet-monaco-es.

troy351 avatar troy351 commented on May 29, 2024

Maybe a better way

Select code + cut + typing and expand emmet code + paste

from emmet-monaco-es.

rizrmd avatar rizrmd commented on May 29, 2024

I can expose internal emmet api, and maybe you could add this command yourself?

Yeah, this will enough.

Select code + open Command Palette + select your command + typing emmet code

I am get used to this flow on vscode, it's more intuitive for me...

Maybe we can put an example for implementing this ? So activation behavior will be up to the user.

from emmet-monaco-es.

troy351 avatar troy351 commented on May 29, 2024

Will add an example in this weekend

from emmet-monaco-es.

troy351 avatar troy351 commented on May 29, 2024

I've added a new example wrap.html.

from emmet-monaco-es.

Related Issues (20)

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.