Bug 233144 - Implement ctrl+del+number shortcut for deleting from the translation memory
Summary: Implement ctrl+del+number shortcut for deleting from the translation memory
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-03 09:07 UTC by Laszlo Papp
Modified: 2018-08-16 06:30 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Papp 2010-04-03 09:07:39 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Archlinux Packages

It would be nice to have this facility. When you do the translations and when you can use ctrl+number shortcuts for inserting a translated expression from the translation memory, you can see that so much times you've got wrong translations among the first some results in the translation memory due to the team work, e.g. a wrong translation by other person from your team. You can delete it with mouse actions right now, but it could become more efficient if I could remove the first entry with ctrl+del+1, the second ctrl+del+2, etc.

These shortcuts aren't reserver in lokalize if I saw well, I hope there aren't system-wide shortcuts for it.
Comment 1 Simon Depiets 2018-08-03 03:09:23 UTC
Hello,
Unfortunately it is not possible to make a shortcut Ctrl+Del+X as Del is not a modifier key. It is also not a good idea to use Ctrl+Maj+Number or Alt+Maj+Number because some keyboard already require the use of the Maj Key to access the number (e.g. French azerty keyboards)

I've added Ctrl+Alt+Number to the shortcuts and it's pending review
https://phabricator.kde.org/D14177
Comment 2 Simon Depiets 2018-08-03 03:10:41 UTC
The correct review is https://phabricator.kde.org/D14573
Comment 3 Simon Depiets 2018-08-16 06:30:07 UTC
Git commit d05eaee2566b4b8c692ac6ecac434ae8659d06f6 by Simon Depiets.
Committed on 16/08/2018 at 06:29.
Pushed by sdepiets into branch 'master'.

Add a shortcut to delete TM entries (Ctrl+Alt+Number)

Summary:
Add a shortcut to delete TM entries (Ctrl+Alt+Number)

Reviewers: aacid, ltoscano, shaforostoff, mlaurent, #localization

Reviewed By: aacid, #localization

Tags: #localization

Differential Revision: https://phabricator.kde.org/D14573

M  +14   -5    src/editortab.cpp
M  +15   -1    src/editorui.rc
M  +42   -17   src/tm/tmview.cpp
M  +5    -2    src/tm/tmview.h

https://commits.kde.org/lokalize/d05eaee2566b4b8c692ac6ecac434ae8659d06f6