Zim

Collapse and expand in side panel

Asked by sojusnik

According to the Zim Manual you have to press "*" or "\" to expand or collapse all notes respectively. I can't trigger the desired action with my german layout (qwertz). Nothing happens, when I input "*" (Strg + "+") or "\" (Alt Gr + "ß").

Any advices how to use this shortcuts?

Thanks in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

On Sun, Aug 19, 2012 at 1:35 AM, sojusnik
<email address hidden> wrote:
> New question #206213 on Zim:
> https://answers.launchpad.net/zim/+question/206213
>
> According to the Zim Manual you have to press "*" or "\" to expand or collapse all notes respectively. I can't trigger the desired action with my german layout (qwertz). Nothing happens, when I input "*" (Strg + "+") or "\" (Alt Gr + "ß").
>
> Any advices how to use this shortcuts?

No idea - but I don't have a German keyboard myself either.

You could enable some debug output by editing the source file
"zim/gui/pageindex.py" and look for this line:

#~ print 'KEY %s (%i)' % (gtk.gdk.keyval_name(event.keyval), event.keyval)

(should be around line 556). Remove the "#~ " prefix, save, and
restart zim with the "-D" switch.

Now it should print out how the keystrokes are interpreted by gtk.

This information would help to investigate and see how to fix this.

Regards,

Jaap

Revision history for this message
sojusnik (sojusnik) said :
#2

Sorry, my fault, I've realized that a note was selected, when I was pressing the above mentioned combinations. When a note is note highlighted in the content side bar, then it works!

Btw, how can I change the keybord shortcuts of "expand all" and "collapse all"?

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#3

Good question. At the moment it is hard coded, so no option to change
it other than hacking the code. Don't even know what a logical place
would be for this.

What key bindings do you think are more logical for these actions ?

Revision history for this message
sojusnik (sojusnik) said :
#4

That's a good question!

Maybe you can put these two options in the "View" menu. Then everybody can assign GTK shortcuts as they prefer.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#5

On Mon, Aug 27, 2012 at 10:35 PM, sojusnik
<email address hidden> wrote:
> Maybe you can put these two options in the "View" menu. Then everybody
> can assign GTK shortcuts as they prefer.

Can't really do that, since these are not global bindings. There may
be more than one tree view in a window. With a global binding you
would not know which is being changed.

-- Jaap

Can you help with this problem?

Provide an answer of your own, or ask sojusnik for more information if necessary.

To post a message you must log in.