Code Monkey home page Code Monkey logo

Comments (6)

shundhammer avatar shundhammer commented on June 6, 2024

In the YaST UI engine, I wrote a keyboard shortcut conflict resolver many (20+?) years ago. Qt never got around to do anything like this; they just move the keyboard focus between several widgets with the same shortcut, which makes the shortcuts pretty pointless.

Sigh.

from qdirstat.

shundhammer avatar shundhammer commented on June 6, 2024

"Clean Up" / context menu -> "Open File manager" is already &G now, but that's read from the cleanup config file which has priority. You probably have a config file from before that change. Check ~/.config/QDirStat/QDirStat-cleanup.conf. If you delete that file, the defaults will be regenerated.

from qdirstat.

shundhammer avatar shundhammer commented on June 6, 2024

https://github.com/libyui/libyui/blob/master/libyui/src/YShortcutManager.h#L65-L105
https://github.com/libyui/libyui/blob/master/libyui/src/YShortcutManager.cc#L63-L160

The caveats are the same here, of course: There are only 26 to choose from (A..Z), and not all of them occur in the widgets' labels, so in real life it's fewer than that. Any of them that are accessible all over the program make the problem a lot worse. Not all conflicts can be resolved, automatically or manually.

from qdirstat.

Lithopsian avatar Lithopsian commented on June 6, 2024

My configuration shows the hotkey as ctrl-G, but the accelerator still F (Open &File manager). Wonder how that happened?

Is the hotkey configurable in the config dialog, or only by hand in the conf file? I see ctrl-G in the menus but nowhere in the config dialog.

from qdirstat.

shundhammer avatar shundhammer commented on June 6, 2024

The Ctrl+G etc. hotkeys for cleanups are configurable only manually in the config file, the other one (the menu shortcut) is part of the cleanup name that you see in the cleanup config dialog.

from qdirstat.

shundhammer avatar shundhammer commented on June 6, 2024

Notice that all changes to cleanups become visible only when removing the cleanup config file ~/.config/QDirStat/QDirStat-cleanup.conf.

To keep any custom cleanups, copy that file, strip it down to only the custom ones, and change their sections to a larger number, e.g. [Cleanup_90], [Cleanup_91] etc., then remove QDirStat-cleanup.conf, start and exit QDirStat, and afterwards append the file with the custom cleanups to QDirStat-cleanup.conf. The next QDirStat start will fix the numbers of the added custom cleanups.

from qdirstat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.