Home Download Buy Blog Forum Support

How to set shortcut for menu "View => word Wrap" ?

How to set shortcut for menu "View => word Wrap" ?

Postby dmarsentev on Fri Apr 06, 2012 10:52 am

Hello.

I've tried to set shortcut to menu "View => word Wrap" and I've failed.
I'd like to switch between "word Wrap" on/off within keys ctrl+t+w.
I've opened "Preferences => Key Bindings - User" and here is conent:
Code: Select all
[
{ "keys": ["ctrl+t+w"], "command": "toggle wordWrap" }
]


I've saved this settings with ctrl+s
Then I've opened my txt file containing long strings and I've tried to use ctrl+t+w.
There were no effect.
What is the problem?
How can I bind chortcut ctrl+t+w to menu item "word Wrap" ?
dmarsentev
 
Posts: 1
Joined: Fri Apr 06, 2012 10:42 am

Re: How to set shortcut for menu "View => word Wrap" ?

Postby facelessuser on Fri Apr 06, 2012 1:01 pm

dmarsentev wrote:Hello.

I've tried to set shortcut to menu "View => word Wrap" and I've failed.
I'd like to switch between "word Wrap" on/off within keys ctrl+t+w.
I've opened "Preferences => Key Bindings - User" and here is conent:
Code: Select all
[
{ "keys": ["ctrl+t+w"], "command": "toggle wordWrap" }
]


I've saved this settings with ctrl+s
Then I've opened my txt file containing long strings and I've tried to use ctrl+t+w.
There were no effect.
What is the problem?
How can I bind chortcut ctrl+t+w to menu item "word Wrap" ?


1. I don't think you can use "t" as a modifier key. As far as I know, only "ctrl", "shift", "alt", and "meta" can be modifier keys.

2.Your command would not work anyways; "toggle wordWrap" is not a command.

3. Do this (change shortcut to what you want only using accepted modifier keys; this is tested, and does work):
Code: Select all
[
    { "keys": ["ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}
]
facelessuser
 
Posts: 1548
Joined: Tue Apr 05, 2011 7:38 pm

Re: How to set shortcut for menu "View => word Wrap" ?

Postby C0D312 on Fri Apr 06, 2012 1:05 pm

Maybe he means:
Code: Select all
[
    { "keys": ["ctrl+t", "ctrl+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}}
]
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am


Return to Technical Support

Who is online

Users browsing this forum: estmatic, Exabot [Bot], Google [Bot] and 35 guests