Bug 396324

Summary: Provide a shortcut to hide / show panel
Product: [Applications] krusader Reporter: dufferzafar <dufferzafar0>
Component: shortcutsAssignee: 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
A lot of the times, I don't really use the secondary panel (the one to the right) and have to manually resize it to completely hide it.

Having a shortcut to show / hide would be great.
Comment 1 Alex Bikadorov 2018-07-09 07:26:03 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?
Comment 2 dufferzafar 2018-07-10 05:49:30 UTC
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!
Comment 3 Nikita Melnichenko 2018-07-11 05:55:26 UTC
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.
Comment 4 dufferzafar 2018-07-20 17:48:12 UTC
I'm going through parts of the Krusader source. Can you point me to where this DBUS interface will need to be added?
Comment 5 Nikita Melnichenko 2018-07-23 06:03:34 UTC
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.