Comments (5)
I'm hesitant to deviate from QKeySequence's standard shortcuts without replacing its use everywhere... I haven't decided what to do about that yet, but I'll probably end up looking into Qt's sources at some point to see how bad the shortcut situation really is.
[...] but not Ctrl+U to delete a line.
I've never seen Ctrl+U for deleting a line... What editor(s) are you seeing this in?
For reference, I looked at:
- kate: Ctrl+U capitalizes the current letter or selection; Ctrl+K deletes line
- gedit: Ctrl+U capitalizes the current letter or selection; Ctrl+D deletes line
- Notepad2: Ctrl+U lowercases the current selection; Ctrl+Shift+D deletes line
- vscode: Ctrl+U is "soft undo"; Ctrl+Shift+K deletes line
- clion: Ctrl+U is "goto supermothod"; Ctrl+Y deletes line
- qtcreator: Ctrl+U selects the current bracket range; No delete line that I could find
As you can see, not a whole lot of consistency here... I'll probably just pick one, but which one might depend on whether I refactor all the shortcuts or not.
from qtextpad.
QKeySequence is OK; it's easy for me to replace it with sed
before compilation; it's automatic with my PKGBUILD.
As for the Ctrl+U binding, sorry, I've seen it in the above link: https://doc.qt.io/qt-5/qkeysequence.html
By the way, have you seen my #8 (comment)?
from qtextpad.
And seemingly Ctrl+U is used for underline as well!
from qtextpad.
After digging into the sources a bit, it looks like Qt actually does the right thing, but only when the desktop correctly reports what it is through XDG_CURRENT_DESKTOP
(and of course only for DEs that Qt knows). As an example, when running on xfce started standalone over VNC (which is a common use case of mine), xfce-session does not correctly set XDG_CURRENT_DESKTOP
, meaning that the platform support plugin treats the app as "Generic Unix" rather than "XFCE". Setting XDG_CURRENT_DESKTOP=xfce
(or the equivalent for your DE) causes the shortcuts to be mapped correctly, as well as affecting other desktop-specific settings such as toolbar icons.
from qtextpad.
Yes, I know, but setting XDG_CURRENT_DESKTOP to something has some other adverse consequences if I recall correctly, but I don't remember what they were. No big deal; sed
is my friend.
from qtextpad.
Related Issues (15)
- Can't save HOT 2
- "Go to line" doesn't work
- Trying to make an AUR package
- .desktop file HOT 1
- Occasional stalling a few seconds while opening a file HOT 9
- "Save As..." dialog defaults to Home
- Colourful line numbers HOT 2
- Restore cursor position in re-opened files HOT 1
- Notify on file changes
- Character count on the status bar
- Code Folding support HOT 1
- Automatic backup?
- Add option to change redo shortcut HOT 1
- Would you like to add ssh function to edit remote file? Thanks! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtextpad.