[racket] keyboard shortcut for jumping between definitions & interactions windows

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue Aug 28 17:31:10 EDT 2012

On Tue, Aug 28, 2012 at 4:08 PM, Benjamin Atkin <batkin at us.ibm.com> wrote:
> Yes, that works for me. I get Ctrl+F6. It's a bit awkward, but I know where
> to go to change it, and it's good enough. Thank you.
>
> I'd still like to see the problem better-solved in a future release. Adding
> it to the Keyboard Shortcuts section of the manual, with some text like
> "switch between the interactions and definitions window" to make it
> searchable, would have helped me get up to speed quickly. Adding it to the
> menu would also get its shortcut listed in another place, but it wouldn't be
> useful for clicking on, so having it in the menu might seem odd.

I've added c-f6 to the keybindings documentation and mentioned that
searching for ``shift-focus'' in the keybindings dialog finds more
such bindings.

> I still think changing the behavior of Ctrl+E and Ctrl+D to what I detailed
> earlier might be an improvement. It would be slightly more complex, but on
> the other hand, either key combination in any state could help the user get
> a desired result. Right now there are three states (definitions shown,
> interactions shown, and both shown). These changes would add a state
> (definitions shown and focused, interactions shown and focused, both shown
> with definitions focused, both shown with interactions focused). It would
> add an extra transition (keyboard combination) to hiding the unfocused
> window. This extra transition could be solved by adding an extra keyboard
> combination to show only the focused window and hide the others (like C-x 0
> in emacs IIRC).

I think probably the best course is for you to implement these as your
own keybindings file. You can put them on planet and see if you get
any uptake from others (or maybe people will chime in here too, if you
post them here or announce them here).

Robby

> Ben
>
> robby.findler at gmail.com wrote on 08/28/2012 02:46:52 PM:
>
>> From: Robby Findler <robby at eecs.northwestern.edu>
>> To: Benjamin Atkin/Boulder/Contr/IBM at IBMUS,
>> Cc: users at racket-lang.org
>> Date: 08/28/2012 02:47 PM
>> Subject: Re: [racket] keyboard shortcut for jumping between
>> definitions & interactions windows
>> Sent by: robby.findler at gmail.com
>
>>
>> What happens if you search for "shift-focus" in the keybindings
>> window. Do you see any keybindings?
>>
>> Robby
>>
>> On Tue, Aug 28, 2012 at 3:35 PM, Benjamin Atkin <batkin at us.ibm.com> wrote:
>> > I wanted a way to jump from the interactions window to the definitions
>> > window. First I checked the View menu and then I checked the Keyboard
>> > Shortcuts section in the Dr. Racket manual. I didn't find it in either
>> > place. I did find an undocumented way in the mailing list, which is to
>> > use
>> > C-x o, which doesn't work for me. I also found C-d and C-e, which do
>> > indeed
>> > get me between the windows, but in the process hide them. I like to have
>> > both showing at the same time so it doesn't quite work for me.
>> >
>> > I think the keyboard system and the help system (with search) are great
>> > in
>> > general, and this is a glaring omission. How about creating new
>> > shortcuts
>> > that go between interactions and definitions and documenting them in the
>> > manual, and maybe even adding them to the menu?
>> >
>> > Actually by making the states more complicated, I think it could be
>> > added in
>> > a somewhat reasonable way without adding more shortcuts. Right now if
>> > both
>> > interactions and definitions are shown, Ctrl+D hides definitions and
>> > Ctrl+E
>> > hides interactions, regardless of which is currently focused. Now,how
>> > about
>
>> > if you could only hide the one that is currently focused with
>> > thatshortcut?
>> > That is, if definitions was focused, Ctrl+D would hide the definitions,
>> > but
>> > Ctrl+E wouldn't hide the interactions. Instead, Ctrl+E would focus the
>> > interactions. Then, because the focus was changed to Interactions, the
>> > Interactions could be hidden in this way. To complete this, the Show
>> > Interactions when only the Definitons is shown would need a slightchange
>> > of
>
>> > behavior: invoking this would also focus the Interactions window.
>> >
>> > Any thoughts?
>> >
>> > Thanks,
>> >
>> > Ben
>> >
>> >
>> > ____________________
>> >   Racket Users list:
>> >   http://lists.racket-lang.org/users
>> >
>>

Posted on the users mailing list.