This repository has been archived by the owner. It is now read-only.

Add support for macros #161

Closed
lamielle opened this Issue Mar 12, 2014 · 74 comments

Comments

Projects
None yet
@lamielle
Copy link

lamielle commented Mar 12, 2014

One of my favorite features in vim is macros. Recording with q+letter, executing the commands you want recording, then hitting q again.

Having this feature in Atom would be awesome!

@zenhob zenhob added the enhancement label Mar 12, 2014

@qguv

This comment has been minimized.

Copy link

qguv commented May 8, 2014

I agree. We lose a lot of vim efficiency in Atom without macros.

@zackp30

This comment has been minimized.

Copy link

zackp30 commented Aug 19, 2014

I too would like this.

@haoyangnz

This comment has been minimized.

Copy link

haoyangnz commented Sep 17, 2014

This would be very helpful. Is there any plan for this? If not, I might implement it.

@rbraley

This comment has been minimized.

Copy link

rbraley commented Jan 22, 2015

+1

2 similar comments
@danilomiranda

This comment has been minimized.

Copy link

danilomiranda commented Jan 23, 2015

+1

@jeffschwartz

This comment has been minimized.

Copy link

jeffschwartz commented Jan 23, 2015

+1

@joowh85

This comment has been minimized.

Copy link

joowh85 commented Jan 28, 2015

+1

ctrl+alt+l
'Convert space to tabs'
'Toogle soft tabs'

This is what I want to.

@jeffschwartz

This comment has been minimized.

Copy link

jeffschwartz commented Jan 28, 2015

+1
On Jan 27, 2015 8:58 PM, "sangwoojoo" notifications@github.com wrote:

+1

ctrl+alt+l
'Convert space to tabs'
'Toogle soft tabs'

This is what I want to.


Reply to this email directly or view it on GitHub
#161 (comment).

@DarrylD

This comment has been minimized.

Copy link

DarrylD commented Jan 30, 2015

+1

In the process of making a few atom plugins which could easily be macros.

@andrewpcone

This comment has been minimized.

Copy link

andrewpcone commented Feb 17, 2015

+1

@kebertx

This comment has been minimized.

Copy link

kebertx commented Apr 1, 2015

Not to pop in just to say "+1," but...

+1!

@boyvinall

This comment has been minimized.

Copy link

boyvinall commented Apr 15, 2015

+1

@DrBones

This comment has been minimized.

Copy link

DrBones commented Apr 25, 2015

Whohoo..umm..
+1

@mverardo

This comment has been minimized.

Copy link

mverardo commented May 14, 2015

+1

1 similar comment
@cshanes

This comment has been minimized.

Copy link

cshanes commented Jun 5, 2015

+1

@arcseldon

This comment has been minimized.

Copy link

arcseldon commented Jul 1, 2015

+10 :D Atom is already awesome, as is VIM. But without Macros support, still regularly need to switch between the two text editors. With macros support, Atom would reach a point where for most day to day needs Vim is no longer required.

@walterheck

This comment has been minimized.

Copy link

walterheck commented Jul 5, 2015

+1

@mwleeds

This comment has been minimized.

Copy link
Contributor

mwleeds commented Jul 13, 2015

Based on this I compiled a list of features that should be included in this fix:

  • ability to record command sequences to registers using
q<letter><commands>q
  • ability to replay macros using
<number>@<letter>

where number is optional

  • ability to execute the last used macro again using
@@
  • ability to run a single-line macro on each line of a visual selection using
:normal @<letter>
  • ability to view all 26 registers' contents using
:registers

or

:reg
  • ability to view one or more registers' contents using
:reg <letter><letter>...
  • ability to save macros for use in a subsequent vim session
  • ability to disable saving macros or control their length using
:set viminfo=...
  • ability to read macros from a vimrc file in the format
let @<letter>='<commands>'

(or using that syntax at runtime)

  • ability to append to an existing macro using
q<capital-letter><commands>q
  • ability to insert the contents of a register using
<Ctrl-R><Ctrl-R><letter>
@mwleeds

This comment has been minimized.

Copy link
Contributor

mwleeds commented Jul 13, 2015

However, I don't see how many of them would work if Atom doesn't let you see commands as you type them like Vim does. Are there any plans to include this feature?

@tony612

This comment has been minimized.

Copy link
Contributor

tony612 commented Jul 27, 2015

👍

1 similar comment
@kzaher

This comment has been minimized.

Copy link

kzaher commented Aug 2, 2015

+1

@Phylodome

This comment has been minimized.

Copy link

Phylodome commented Aug 14, 2015

+💯

Without macros atom vim-mode is severely hamstrung :(

@gmondada

This comment has been minimized.

Copy link

gmondada commented Aug 16, 2015

+1

@romgrk

This comment has been minimized.

Copy link

romgrk commented Aug 16, 2015

To package maintainers:

I have written a personnal Macro package, not published because it is not production-level, but it still works as I expect it to work.
I would like to know if you would be open to a PR on this.
The implementation consists of a KeyboardEvent listener, which is activated upon corresponding command; it listens for events on <atom-workspace>. Once command is called again, it removes the listener and transform the KeyboardEvents in a string of keys (vim-notation). The string is then stored for further usage.

@maxbrunsfeld

This comment has been minimized.

Copy link
Contributor

maxbrunsfeld commented Aug 17, 2015

@romgrk I would be open to a PR for this, but since it is a big change, I'd prefer that you maintain it as a separate package for a little while. Is your package published? If so, maybe some people participating in this thread would like to give it a try, or help you develop it!

@jacekkopecky

This comment has been minimized.

Copy link
Contributor

jacekkopecky commented Aug 17, 2015

Yes, I'd like to have a look, @romgrk ; can't promise to do anything quickly though. Is it in any way related to, or similar to, https://atom.io/packages/atom-macros (which I also have yet to look at)?

@kebertx

This comment has been minimized.

Copy link

kebertx commented Aug 18, 2015

Looking at atom-macros, it's definitely not what any vim user is thinking about when you mention an editor macro. With vim, you start recording a sequence of actions, so you can repeat the same editor commands multiple times.

With the atom-macros package, you have to write coffeescript in .atom/macros.coffee ahead of time to be able to run a command from the command pallette. To be honest, I'm not sure how that's different than just defining a function in init.coffee, but whatever. It's not what we're looking for at all.

@jacekkopecky

This comment has been minimized.

Copy link
Contributor

jacekkopecky commented Aug 18, 2015

Oh, how mistaken I've been about that package! Yes, I'd like to have a look at yours.

@jtheoof

This comment has been minimized.

Copy link

jtheoof commented Nov 22, 2015

Any progress on this?

@olivoil

This comment has been minimized.

Copy link

olivoil commented Nov 28, 2015

+1

1 similar comment
@masics

This comment has been minimized.

Copy link

masics commented Nov 30, 2015

+1

@arcseldon

This comment has been minimized.

Copy link

arcseldon commented Nov 30, 2015

It is evident this is a very popular feature request. I already voted back on 1st July :)

@jacekkopecky - sorry, I didn't understood whether the comments you have made above are a commitment to providing this feature. Please may I ask directly - Are any contributors from atom/atom or atom/vim-mode actively working on providing macros / vim register support for a generic macros solution in Atom?

In any case, keep up the excellent work, and thanks for everything provided to date.

@jacekkopecky

This comment has been minimized.

Copy link
Contributor

jacekkopecky commented Nov 30, 2015

@arcseldon I don't know of anybody working on this, but I've been occuppied by my day job since October and can't spend any time on vim-mode at all, so I could easily have missed it. I expect to do more vim-mode work (which could include macros) in the spring and summer, so don't hold your breath. 8-)

@arcseldon

This comment has been minimized.

Copy link

arcseldon commented Nov 30, 2015

@jacekkopecky Thank you for your reply and clarifying status. Appreciate everyone is doing what they can and when they can afford the time etc. Wish I could offer to help out too, but just not possible right now either for much the same reasons :( Cheers.

@dantaeyoung

This comment has been minimized.

Copy link

dantaeyoung commented Dec 14, 2015

+1

9 similar comments
@stavinopolis

This comment has been minimized.

Copy link

stavinopolis commented Dec 17, 2015

+1

@HappyTepid

This comment has been minimized.

Copy link

HappyTepid commented Dec 18, 2015

+1

@wild-ki-ll

This comment has been minimized.

Copy link

wild-ki-ll commented Dec 18, 2015

+1

@jrpredes

This comment has been minimized.

Copy link

jrpredes commented Dec 21, 2015

+1

@Daxez

This comment has been minimized.

Copy link

Daxez commented Dec 26, 2015

+1

@qiaomuf

This comment has been minimized.

Copy link

qiaomuf commented Dec 29, 2015

+1

@crazy4groovy

This comment has been minimized.

Copy link

crazy4groovy commented Jan 5, 2016

+1

@brujo-rojas

This comment has been minimized.

Copy link

brujo-rojas commented Jan 10, 2016

+1

@sunjay

This comment has been minimized.

Copy link

sunjay commented Jan 11, 2016

+1

@sevenskull

This comment has been minimized.

Copy link

sevenskull commented Jan 15, 2016

That would be awesome! I use notepad++ for macros when i need, but i use linux, so wine is needed.

@igagen

This comment has been minimized.

Copy link

igagen commented Jan 16, 2016

+1

5 similar comments
@karlfloersch

This comment has been minimized.

Copy link

karlfloersch commented Jan 27, 2016

+1

@jeremiahkonkle

This comment has been minimized.

Copy link

jeremiahkonkle commented Jan 30, 2016

+1

@sayingandparsing

This comment has been minimized.

Copy link

sayingandparsing commented Feb 6, 2016

+1

@palatok

This comment has been minimized.

Copy link

palatok commented Feb 11, 2016

+1

@lime-green

This comment has been minimized.

Copy link

lime-green commented Feb 12, 2016

+1

@JunSuzukiJapan

This comment has been minimized.

Copy link

JunSuzukiJapan commented Feb 18, 2016

Hi, all.

I've tried to make keyboard macro package, but this is or become useless?

atom-keyboard-macros-vim

I usually use emacs key-bindings, so I'm not familiar about the vim.

@sarojkh

This comment has been minimized.

Copy link

sarojkh commented Feb 23, 2016

+1

1 similar comment
@palatok

This comment has been minimized.

Copy link

palatok commented Feb 23, 2016

+1

@thomasjo

This comment has been minimized.

Copy link
Member

thomasjo commented Feb 23, 2016

As it stands, all the +1's are only adding noise and causes 62+ people to get notified. Therefore I'm locking this issue for the time being.

@atom atom locked and limited conversation to collaborators Feb 23, 2016

@lee-dohm

This comment has been minimized.

Copy link
Member

lee-dohm commented Apr 5, 2018

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!

@lee-dohm lee-dohm closed this Apr 5, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.