atom / atom

:atom: The hackable text editor
https://atom.io
MIT License
60.23k stars 17.39k forks source link

Move by paragraph #1288

Closed thedaniel closed 10 years ago

thedaniel commented 10 years ago

In emacs, forward-paragraph and backward-paragraph are super handy, and in native OS X text areas, something very similar is mapped to opt-down and opt-up. This moves the cursor to the end of the current paragraph - in code (in emacs) these are delineated by newlines that are empty or only whitespace, and wrapped prose in native textareas, by newlines. Is there something like this available in Atom? If not, it might be worth adding to the platform keybindings for os x.

mcolyer commented 10 years ago

FWIW vim also has a motion for paragraph movement. So it'd be nice to have that in core too.

https://github.com/atom/vim-mode/blob/master/lib/motions.coffee#L156

benogle commented 10 years ago

I do have atom/line-jumper mapped to opt-up and opt-down, but it just moves 10 lines all the time. Maybe we can move @mcolyer's paragraph movement command into core?

I cant get the default osx text boxes to trigger this. What app?

nathansobo commented 10 years ago

I think general movement commands like this belong in core. Would also be cool if we found a way to pass numeric arguments to commands like line jumper a la emacs.

izuzak commented 10 years ago

Just noticed that @karlin created a neat little package for this: https://atom.io/packages/move-by-paragraph

If we'd still like to have this in core, perhaps @karlin would be interested in making a pull request? :bowtie:

thedaniel commented 10 years ago

I've been using this package: https://atom.io/packages/block-travel

karlin commented 10 years ago

@nathansobo @izuzak https://github.com/atom/atom/pull/2371

probablycorey commented 10 years ago

Closed by https://github.com/atom/atom/pull/2371

lock[bot] commented 5 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!