On Sat, 24 May 2014 08:13:04 -0700 (PDT)
Chris George <[email protected]> wrote:

> Hello,
> 
> I have a couple of questions.
> 
> 1. Is there a better way to access the layout menu than trying
> repeatedly to right click on the narrow bit of border between windows?

No, partly because the context of which narrow border you clicked is
needed to reference the panes you want to work on.  "Add below", "Split
left vertically", etc. are relative to the border you selected.
Thinking about it, I guess there could be a command that cycles through
the borders using a key, so that you can select the one you want that
way, and then pop up the context menu with another key.

Also the context free commands could be made accessible as targets for
keybinding, currently there's 

free-layout-load
    Open context menu for loading a different layout,
    conventient keyboard shortcut target.
free-layout-load-<layout-name>
    Load the named layout
free-layout-restore
    Use the layout this outline had when it was opened.
free-layout-zoom
    Zoom or unzoom the current pane

> 2. Is the a way to save these setting, to make them persistent across 
> sessions?

Yes, the Save and Load layout menu items in the context menu.  The last
layout saved or loaded for an outline will be used for that outline in
subsequent sessions.  Note that layouts are stored in g.app.db and
c.db, so they don't travel with the outline, just apply to it when it's
running on your machine.  Unless you use context-menu embed layout, of
course.

> 3. Is it just me or does everyone get the following message when
> trying to use the 'Window', 'Toggle Split Direction' option?

No, it happens to me too, and is a bug.  I think it's basically the
same as the context menu's "Rotate all" option, which isn't well named,
seeing it really just toggles between +0 degrees and +90 degrees.  So I
guess the fix is to make the old 'Window', 'Toggle Split Direction'
command call free_layout's "Rotate all", which should probably be
renamed.

Just because it's easy, I'm going to add a

free-layout-context-menu 

command to open the free layout context menu using the first border in
the top level splitter as the context, that will at least give keyboard
access to the menu for commands which don't require selecting a border
for context.  In future maybe there'll be an option to select which
border is used for this command's context.

Cheers -Terry

> exception executing command
> Traceback (most recent call last):
>   File "/home/chris/Working/leo/leo-editor/leo/core/leoCommands.py",
> line 535, in doCommand
>     val = command(event)
>   File "/home/chris/Working/leo/leo-editor/leo/plugins/qtGui.py",
> line 5152, in toggleSplitDirection
>     r1 = getRatio(w1)
>   File "/home/chris/Working/leo/leo-editor/leo/plugins/qtGui.py",
> line 5128, in getRatio
>     sizes = w.sizes()
> RuntimeError: wrapped C/C++ object of type NestedSplitter has been
> deleted
> 
> Thanks,
> 
> Chris
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to