Select Block function assign to key sequence?

I would like to assign the Edit > Select > Select Block functionality to a key sequence.

First I confirmed that the functionality works when accessed using the menu item. Then in Preferences > Key Bindings, I chose the command “Code: Select Block” and assigned it the key sequence Ctrl+E B. But when I place the edit cursor within a block of code and execute the key sequence, the command is not executed. To confirm that the command is truly assigned to that key sequence, and that the problem is not Ctrl+E accidentally being assigned to some other command, I typed “Ctrl+E” in the “New Key Sequence” field, and the only command listed is the correct one (screenshot 1 below).

So I restarted Komodo in safe mode, confirmed that both the menu item and the default key sequence (Ctrl+[) work fine. In Preferences > Key Bindings, I again chose the command “Code: Select Block”, removed the default key sequence, and assigned it the key sequence Ctrl+E B. As before, the new key sequence does not work.

Any ideas what is going wrong?

@mjross, I don’t think you can use ctrl + e as a “wait for next keypress” binding. That’s what ctrl + k is for. ctrl + e will just fire immediately.

  • Carey

@careyh, is there something special about Ctrl+E that makes it unusable as a first step in a key sequence? After all, I’m already using a couple other compound Ctrl key sequences, such as:
Ctrl+G [ = Code: Jump to Matching Brace
Ctrl+M N = Macro: Start/Resume Recording
Ctrl+U L = Code: Convert Selection to Lower Case
Ctrl+I B = User Interface: Show / Hide Bottom Pane

Oh I guess I was confused because only use ctrl+k in the default schemes to wait for an additional key press.


I just tried your setup and it works just fine. With the below added to my keybindings schema I can select a block with Ctrl+e, b. Anything in your logs?

I see. It figures that I would be the person to bump into any problem like this, given that I prefer doing everything on the keyboard and, for many applications, set up all kinds of keyboard shortcuts. :slight_smile: In fact, over the decades, as I’ve gone from one editor to another, I’ve been able to still use most of the same shortcuts, which makes it easy for muscle memory.

As for Komodo, I will email my log file to you.

I’m at a bit of a loss. Maybe, could you send me your zipped up profile folder, minus the codeintel stuff?

  • Carey