Comments (13)
@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.
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.
@magnars I thought that makey was from magit :/ I haven't looked deeper at magit's internals though.
from js2-refactor.el.
@tarsius I saw some comments related to magit-popup
, would it make sense to wait for it to be released?
from js2-refactor.el.
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.
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.
ok, thanks! makey
it is, then :)
from js2-refactor.el.
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.
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?
from js2-refactor.el.
@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.
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.
There is also emr.
from js2-refactor.el.
@nbfalcon True, but I like the mnemonic keybindings of js2-refactor more.
from js2-refactor.el.
Related Issues (20)
- `inline-var` produces incorrect output if no semicolons are used HOT 3
- Cannot slurp the last AST node of a buffer
- js2r-contract-node-at-point not behaving as expected HOT 1
- Does js2-refactor hard-require yasnippet ? HOT 2
- Idea for js2r-extract-class-to-file
- multiple word edit failed in emacs 26.1 on archlinux (C-c C-r i-v) HOT 3
- Extract function fails inside exported functions
- extract function with a selected region extracts the whole line HOT 1
- `js2r-rename-var`: don't move cursor to the start of the symbol
- Extract function ignores jsdoc HOT 1
- move region to new file
- Moving js2-refactor under `js-emacs` HOT 6
- Toggle 'use strict' in module/defun
- How to use with js2-minor-mode? HOT 1
- js2r-inline-var doesn't work if variable is initialized with a `new` expression
- js2r-toggle-arrow-function-and-expression not working for brace-less arrow functions HOT 3
- Package not found when doing package-install HOT 2
- Work when hashbang is present HOT 1
- calling js2r-toggle-arrow-function-and-expression is not idempotent for expressions returning json HOT 2
- Any plan to support web-mode HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js2-refactor.el.