Re: [ARTIQ] ARTIQ shortcuts

2015-10-27 Thread Sébastien Bourdeauducq
Hi,

On 10/24/2015 01:16 AM, Robert Jördens wrote:
> On Fri, Oct 23, 2015 at 6:56 PM, Sébastien Bourdeauducq  
> wrote:
>> What exactly should the hotkeys do in ARTIQ, and what are their use cases?
>>
>> As I understand, the idea is to assign hotkeys to experiments in the
>> explorer, and pressing one will run the associated experiment with the
>> arguments currently set for it in the right panel of the explorer.
> 
> Yes. If it is a useful simplification, a limitation to the function
> keys would be fine.

Done. Right click in the experiment list in the explorer panel to define
shortcuts.

>> Are there other hotkey feature requests/use cases?
> 
> IMHO the UI should also have a sensible adaptation the usual desktop
> keybindings:
> 
> 
> When the scheduler pane is active:
> delete: (graceful) termination

Done. Delete = graceful termination, Shift+Delete = kill.

> enter: open in explorer?

That's slightly complicated to implement and additionally Ting Rei wants
several explorer docks. Then there is the problem of which one to use
(or create a new one?).

> When the explorer is in focus:
> enter: enqueue
> 
> When an experiment is in focus:
> ctrl-enter: enqueue

What exactly is the difference between "explorer in focus" and
"experiment in focus"? Does it matter to be able to use Enter without
CTRL in the former case?

Sébastien

___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-24 Thread Robert Jördens
Hello,

On Tue, Oct 27, 2015 at 4:28 AM, Sébastien Bourdeauducq  wrote:
> Done. Delete = graceful termination, Shift+Delete = kill.

Ack. The idiomatic keybindings are ok by me. Maybe others prefer
letter bindings (ctrl-c for kill, ctrl-q for graceful).

>> enter: open in explorer?
>
> That's slightly complicated to implement and additionally Ting Rei wants
> several explorer docks. Then there is the problem of which one to use
> (or create a new one?).
>
>> When the explorer is in focus:
>> enter: enqueue
>>
>> When an experiment is in focus:
>> ctrl-enter: enqueue
>
> What exactly is the difference between "explorer in focus" and
> "experiment in focus"?

If experiments and explorer are different docks/windows they have
focus at different times.

> Does it matter to be able to use Enter without
> CTRL in the former case?

Only in the case where "enter" in an experiment already has a meaning.

-- 
Robert Jordens.
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-25 Thread Sebastien Bourdeauducq

On Wednesday, November 25, 2015 11:55 AM, Robert Jördens wrote:

When the explorer is in focus:
>>enter: enqueue
>>
>>When an experiment is in focus:
>>ctrl-enter: enqueue

>
>What exactly is the difference between "explorer in focus" and
>"experiment in focus"?

If experiments and explorer are different docks/windows they have
focus at different times.


I see. After we do this "experiment dock" change, how important is 
submitting from the explorer? Can we support submission only from the 
experiment docks?


Sebastien
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-25 Thread Robert Jördens
On Wed, Nov 25, 2015 at 3:30 AM, Sebastien Bourdeauducq  wrote:
> I see. After we do this "experiment dock" change, how important is
> submitting from the explorer? Can we support submission only from the
> experiment docks?

It is a bit inconvenient. In many cases one just fires a calibration
or verification experiment without wanting a window to pop up then
having to close it again.
Is this analogous to submitting using meta-experiments and the problem
of getting the arguments?

-- 
Robert Jordens.
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-25 Thread Sébastien Bourdeauducq
On 11/26/2015 11:34 AM, Robert Jördens wrote:
> In many cases one just fires a calibration
> or verification experiment without wanting a window to pop up then
> having to close it again.

What about using the shortcuts (which can have buttons in addition to
the F-key mappings) instead of the explorer when doing this?

___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-25 Thread Robert Jördens
On Wed, Nov 25, 2015 at 8:31 PM, Sébastien Bourdeauducq  wrote:
> On 11/26/2015 11:34 AM, Robert Jördens wrote:
>> In many cases one just fires a calibration
>> or verification experiment without wanting a window to pop up then
>> having to close it again.
>
> What about using the shortcuts (which can have buttons in addition to
> the F-key mappings) instead of the explorer when doing this?

I suspect one would quickly exhaust the number of F-keys on even the
largest keyboards or the capacity to remember more than ~5 mappings ;)

-- 
Robert Jordens.
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq


Re: [ARTIQ] ARTIQ shortcuts

2015-11-25 Thread stewart mackenzie
A possibility is keyboard chording.

Only using the letters A S D F, certain presses map to certain actions.
This was used to great effect in the acme text editor. (keep in mind people
also use other keyboards like dvorak.)

On 26 Nov 2015 11:43, "Robert Jördens"  wrote:
> I suspect one would quickly exhaust the number of F-keys on even the
> largest keyboards or the capacity to remember more than ~5 mappings ;)
___
ARTIQ mailing list
https://ssl.serverraum.org/lists/listinfo/artiq