| Summary: | Provide a shortcut to hide / show panel | ||
|---|---|---|---|
| Product: | [Applications] krusader | Reporter: | dufferzafar <dufferzafar0> |
| Component: | shortcuts | Assignee: | Krusader Bugs Distribution List <krusader-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | alex.bikadorov, krusader-bugs-null, nikita+kde |
| Priority: | NOR | ||
| Version First Reported In: | 2.7.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
dufferzafar
2018-07-08 23:07:57 UTC
You can define a Useraction for it.
There is already one almost doing what you want: Useractions->Samples->Equal Panel Size
Copy it and change the command to %aPanelSize("100")%. You can set your preferred shortcut for it.
Satisfied?
Hey, thanks for taking the time to respond. Yes, this command is exactly what I was looking for. I have one more request now :) How can I have ONE useraction to toggle the state of the panel "Show or Hide" ? So, I want to press Ctrl+Shift+B to do "aPanelSize(100)" or "aPanelSize(50)" depending on what the current state is. --- A workaround is of course, to have two different UserActions for this. But I'm just wondering if there's a way to get it done in one. --- Thanks! I doubt it's possible to write toggling since useraction language is quite limited. You'll be able to do this if we expose this feature to dbus interface. I'm going through parts of the Krusader source. Can you point me to where this DBUS interface will need to be added? I haven't touched this part of Krusader, however I'd start with understanding QDBusConnection design. Better ask this type of questions on krusader-devel ML. |