I have changed the short cut for “Move Section Up” to CMD+ctrl+Up and “Move Section Down” to CMD+ctrl+Down (I use the preferences → keyboard pane), and I detected two issues:
The first thing I notice is that the shorcut only works if it is applied to “All applications” in Preferences → Settings. This is not really a problem right now, but could be for some people.
The second thing: both “Move Up” and “Move Down” work, however, the “Move down” makes a beep, the typical sound of a shorcut not working. The action is indeed performed, but the sound is quite annoying Any ideas?
Thanks!
PS. I asked about that a year ago, maybe there are any news.
Two approaches come to mind. An easier one, and a better one : - )
The easier approach might be to make a couple of application-specific keyboard assignments through something like Keyboard Maestro:
The specifics would look something like this:
( substituting moveBranchesUp → moveBranchesDown for the mirror case ).
The better approach (faster keystroke performance, more learning, less spending) is probably to make two new keymap assignments inside a very small FoldingText plugin:
You can get to the steps and some sample code through the FT menu with:
FoldingText > Help > Software Development Kit > Documentation > Create Plugins
PS to get a list of all the internal command names (and any keys mapped to them) into the clipboard, you could run this applescript in Script Editor (OS X 10.10) or Applescript Editor (OS X 10.9)
property pstrJS : "
function (editor) {
var lstCmd = editor.commands(),
lstMaps = [],
dctCmd,
strKey;
for (lng = lstCmd.length, i = 0; i < lng; i++) {
dctCmd = lstCmd[i];
strKey = dctCmd.shortcut;
if (strKey) lstMaps.push(dctCmd.name + '\\t' + strKey);
else lstMaps.push(dctCmd.name);
}
lstMaps.sort();
return lstMaps.join('\\n');
}
"
tell application "FoldingText"
set lstDocs to documents
if lstDocs is not {} then
tell item 1 of lstDocs to set strCommands to (evaluate script pstrJS)
set the clipboard to strCommands
return strCommands
end if
end tell
Thanks complexpoint, I have been able to change the shortcut using MacOS preferences.
The new shortcut works fine (Cmd-ctrl-down for MoveDown) but it makes a beep when performing the action. Is the typical sound you hear when a shortcut do not work in the current context, but I am getting it even if it works. Estrange enough, Cmd-ctrl-up of MoveUp work without beep.