CTRL + Shift + T not copying current line to clipboard
Ruben van den Berg last edited by
I’d like a shortkey to copy the current line to my clipboard for pasting text from NPP into another application.
Supposedly, CTRL + Shift + T should do so (see below) but it restores closed windows instead. Settings => Shortcut Mapper confirms this is the case but I don’t see any option for “Copy current line to clipboard” so this doesn’t allow me to change this setting.
I also looked into
C:\Users\Ruben\AppData\Roaming\Notepad++=> shortcuts.xml but it seems to contain only a fraction of what I see under Shortcut mapper and none of the other .xlm files seem to contain those.
How can I fix this?
I’m on Windows 8.1, NPP version 6.8.8.
Sources for CTRL + Shift + T:
PeterJones last edited by PeterJones
When I followed the superuser link, it gave a hint that some of the unmapped options were Scintilla Commands, so I went to Settings >> Shortcut Mapper >> Scintilla commands: in there, I found SCI_LINECOPY was mapped to Ctrl+Shift+T. But, like you, I also have Settings >> Shortcut Mapper >> Main menu: Restore Recent Closed File is mapped to Ctrl+Shift+T.
So, you should be able to click on “Restore Recent Closed File”, click MODIFY, and select “None” in the character pulldown, then OK. Assuming your “Scintilla commands”:SCI_LINECOPY also lists Ctrl+Shift+T, the shortcut should revert to SCI_LINECOPY. I tried, and it worked.
As a result of my investigation, I have follow-on question, and a few related suggestions / feature requests for the developers:
- Question = When there is a conflict in the shortcut mapper, where two commands are listed with the same shortcut (like Reuben and I discovered on “Restore Recent Closed File” vs SCI_LINECOPY, what is the order of priority
Suggestion = In each “tab” of the Shortcut mapper, it would be nice to be able to sort by the various columns. As it stands, you’re stuck with the default sorting; it would be nice to be able to sort alphabetically by “NAME” or by “SHORTCUT”
Suggestion = It would be nice to have an extra tab for “All Commands”, or at least “All Commands With Shortcuts”, so that you don’t have to try to guess what kind of command it is
Suggestion = It would be nice to have a way to search for a given keystroke, and see all the commands that are aliased to that given shortcut, and the order of priority for evaluating it. It could look something like:
[Main Menu][Macros][Run commands][Plugin commands][Scintilla Commands][All][*Search*] SEARCH FOR ___Ctrl+Shift+T___ | Priority | Command Tab | Command Name | Shortcut | | -------- | ----------------------------- | ------------------------------ | ------------ | | 1 | Main menu | Restore Recent Closed File | Ctrl+Shift+T | | 2 | Scintilla commands | SCI_LINECOPY | Ctrl+Shift+T | | -------- | ----------------------------- | ------------------------------ | ------------ | [ MODIFY ] [ DELETE ] [ CLOSE ]
dail last edited by
When there is a conflict in the shortcut mapper, where two commands are listed with the same shortcut (like Reuben and I discovered on “Restore Recent Closed File” vs SCI_LINECOPY, what is the order of priority
I think it comes down to how the source code is structured and how it loads the list of shortcuts.
As for your suggestions, these have all been discussed before and many people agree the shortcut mapper needs a good overhaul (myself included)…such as searching, shorting, notification of conflicts, etc. Unfortunately easier said than done though.
Ruben van den Berg last edited by
@PeterCJ-AtWork sorry for my late response, I took some days off. You suggestion allowed me to resolve the problem. Although I couldn’t delete the CTRL SHIFT T shortcut for reopening closed files (greyed out), I remapped it onto some weird key combination that I’ll never use.
Thanks a lot for your help!!