Git Product home page Git Product logo

Comments (13)

nbfalcon avatar nbfalcon commented on July 29, 2024 1

@NicolasPetton I am not proposing to discard the keybindings. Rather, I think we should integrate with emr additionally. I will do that soon.

from js2-refactor.el.

magnars avatar magnars commented on July 29, 2024

This sounds pretty useful. :)

Would it be an idea to coordinate a little with @darth10, re the same effort being done for clojure-emacs/clj-refactor.el#36

The idea there was to use the popups from magit. Maybe makey is better? I haven't look at it.

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

@magnars I thought that makey was from magit :/ I haven't looked deeper at magit's internals though.

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

@tarsius I saw some comments related to magit-popup, would it make sense to wait for it to be released?

from js2-refactor.el.

darth10 avatar darth10 commented on July 29, 2024

This does sound similar to the work I did in this PR via a new minor mode. Unfortunately, this PR created a new headache - maintaing the new minor mode.

IMHO I think @tarsius is refactoring Magits source to make this possible.
I had a plan of integrating it once he's done.

If makey does the job in a clean and maintainable way, I see no reason for not incorporating it.

Good luck on that PR @NicolasPetton 😄

from js2-refactor.el.

tarsius avatar tarsius commented on July 29, 2024

Unfortunately I got sidetracked working on other parts of magit, and so I have not yet made the changes to magit-popup that make it useful for other packages. Most importantly the api is still subject to major changes.

So I would recommend you stick with makey, for a while at least. It is more geared toward being used as a basic command dispatcher. magit-popup puts the focus on also picking arguments for these commands. In short there is but one hard coded "command" section, and while I intend to fix that there are other things I will work on first.

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

ok, thanks! makey it is, then :)

from js2-refactor.el.

darth10 avatar darth10 commented on July 29, 2024

Bump!

Any updates on this?
It's been quite a while since the last update 😄
Perhaps we have alternatives now too?

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

magit-popup could be used now. Would it still be useful?

However, AFAIR there was an issue with multiple-cursors used from within interactive functions. Is it still the case?

/cc @magnars @darth10

from js2-refactor.el.

darth10 avatar darth10 commented on July 29, 2024

@NicolasPetton I would really like to see magit-popup being used to show the key bindings interactively.
The multiple-cursors issue is something completely new to me though, so not really sure about that.
It would be great to see a PR for it though! Perhaps we could even port it to clj-refactor.el.

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

We could use hydra, as in this snippet: https://gist.github.com/anachronic/7af88c62db136727cd1fed17ee0a662f

I'm not sure if js2-refactor should use hydra by default (and thus require it, or if it should be optional).
@magnars what do you think?

from js2-refactor.el.

nbfalcon avatar nbfalcon commented on July 29, 2024

There is also emr.

from js2-refactor.el.

NicolasPetton avatar NicolasPetton commented on July 29, 2024

@nbfalcon True, but I like the mnemonic keybindings of js2-refactor more.

from js2-refactor.el.

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.