Sublime Forum

Lost the ability of duplicating a line with a shortcut

#1

I’ve lost the ability of duplicating a line with the shortcut keys of control shift and d. I have gone through numerous steps to correct including uninstalling with an application remover (to purge the preference files) to no avail it still doesn’t work on a fresh install. The os is Mac. Catalina.

History: I did transfer some files created on a Windows Sublime and ran files from it.

0 Likes

#2

Have you checked out the default/user keybindings file? Could there be some conflict between the two ?
Just a thought

0 Likes

#3

User bindings are clear and the default doesn’t actually show the key bindings for duplicating a line? I looked at another copy that it was working on as well to verify. (Unless I’m completely off the reservation and missed it)

0 Likes

#4

I would try popping into the Sublime console with View > Show Console, entering sublime.log_commands(True) and sublime.log_input(True). Once you do that, open a file and try to duplicate a line, then check the console again to see what it says.

You should see a line showing you the key you pressed followed by a line that says command: duplicate_line. If you don’t see the key you pressed logged (or it’s different), then the problem is input related. If you see a command other than duplicate_line, then something is stealing the binding.

There’s an illustration on how to carry out the test (and to some degree how to fix it) available in this video on diagnosing key binding problems (disclaimer: I’m the video author).

0 Likes

#5

Very Helpful! Thank you.

I’m getting no command for selector: noop:

update:

I added this to my user key binding:

{ “keys”: [“ctrl+shift+d”], “command”: “duplicate_line” },

Thanks for everybody’s help. Props to OdatNurd!

0 Likes