Moving lines very slow


#1

If you select a line or two and move the line up or down, it seems to respond just fine. If you select like 6 lines, there is a delay and the more you try and move the longer the delay.

I have made my own keybindings for this so not sure if it has something to do with it.

'.workspace .editor:not(.mini)':
  'alt-down': 'editor:move-line-down'
  'alt-up': 'editor:move-line-up'

#2

Anyone have this same issue?


#3

Yes, I see the same problem. Selecting about 100 lines and running editor:move-line-[down|up] will show a noticeable (I’d say a ~300ms) delay. The delay increases along with the number of lines.

It’s not the keybindings - the default keybindings have the same behavior.


#4

Mine delay a couple of seconds like 2 or 3 and with only 5 to 10 lines selected. On v0.84


#5

moreover: code in visible area not following cursor while moving one line upward, cursor just run out of screen


#6

@zsitro yep I noticed that too.

Any Atom contributors care to weigh in on this discussion?


#7

Still happens in my case.


#8

I can confirm that this is the case. An obvious workaround is to simply cut and paste the section.

I’ve opened an issue on this here: https://github.com/atom/atom/issues/3128