Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Can you add a keyboard shortcut for "Toggle Soft Wrap" #5962

Closed
jeffwidman opened this issue Mar 13, 2015 · 9 comments
Closed

Can you add a keyboard shortcut for "Toggle Soft Wrap" #5962

jeffwidman opened this issue Mar 13, 2015 · 9 comments

Comments

@jeffwidman
Copy link

A keyboard shortcut for "Toggle Soft Wrap" would be extremely convenient

@maxbrunsfeld
Copy link
Contributor

Add the following to your keymap.cson:

'atom-text-editor':
  'f10': 'editor:toggle-soft-wrap'

@mark-hahn
Copy link
Contributor

'.workspace .editor:not(.mini)':
'ctrl-shift-W': 'editor:toggle-soft-wrap'

On Fri, Mar 13, 2015 at 11:54 AM, Jeff Widman notifications@github.com
wrote:

A keyboard shortcut for "Toggle Soft Wrap" would be extremely convenient


Reply to this email directly or view it on GitHub
#5962.

@jeffwidman
Copy link
Author

Thanks!

@ftcosta
Copy link

ftcosta commented Aug 8, 2015

Hi,

I'd like to see a default shortcut for soft wrap too. Meanwhile, alt-v···w looks better than using one of these hacks to me.

  • alt-v drops the view menu
  • w toggles wrap

In my laptop, I make soft wrap on by default in config.cson. To open it, go to Edit>Open Your Config.

Type these lines bellow the existing rules.

  editor:
    softWrap: true

And use the combination above toggle it off/on.

@Viveur
Copy link

Viveur commented Sep 19, 2015

+1

@eevmanu
Copy link

eevmanu commented Dec 28, 2015

+1 @ftcosta

@skapeyi
Copy link

skapeyi commented Mar 27, 2017

Spent a lot of time trying to turn on soft wrap by default. Was doing softwrap: true instead of softWrap: true.

@gismatthew
Copy link

gismatthew commented Aug 15, 2017

@ftcosta In my Atom 1.19 I have to use curly braces like so:

editor: {
    softWrap: true
  }

The curly braces are there by default. Not sure if it's necessary but it works for me. Thank you very much. I've been annoyed by this issue for a long time till i found your awesome fix!

@lock
Copy link

lock bot commented Mar 31, 2018

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!

@lock lock bot locked and limited conversation to collaborators Mar 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants