Closed qpwo closed 5 months ago
For example, with this voltage source, it would be nice if I could just click the
1
and type2
then click away or hit enter.
Currently double clicking on an instance brings up the edit attribute dialog box. Double clicking on a value selects it. Typing something replaces the value. Clicking in the schematic empty space applies the change closing the dialog. Clicking another element will apply the change on previous element and update the dialog box with the new element attributes.
Before doing other changes I think a nice thing to add is to have the value
attribute selected and the textbox focused after double clicking. This saves a (precision) double click to select text to replace.
Yes putting the cursor selection there sounds like 90% of the value for 10% of the effort!
Oh if #166 is feasible: Another checkbox in the Edit Properties window ("apply changes while typing") could maybe add another 2x speedup
I have done the change: When double clicking an element, if it has value= or lab= fields then select the text after the '=' and position insertilon cursor. To change a vsource value with minimal GUI actions:
Awesome!!
Tiny pain point: if I move my mouse 1 pixel in the main xschem area, then the popup window loses focus.
https://github.com/StefanSchippers/xschem/assets/10591373/3a816a1b-4a45-400d-8710-17b5c183b725
Is there any easy way to increase that tolerance or a setting to prevent mouse-move from changing focus?
(My general window manager does not change focus on mouse move, if that's relevant.)
No worries if it's too annoying to change!
I will try to set my window manager to 'click to focus' and see if I can avoid that losing of focus. Thank you
@qpwo Is your xschem behaving differently than in this video?
https://github.com/StefanSchippers/xschem/assets/69359491/0c4cc6c3-782b-4998-8517-5f0ddf092d3b
I just pulled and rebuilt. The main xschem window is still grabbing focus on mouse move on my machine. Perhaps this is beyond xschem's control? Or I'm missing some setting? (Haven't noticed mouse-move-focus in any other apps on my system though.)
You are right.
There is an option in xschemrc:
set autofocus_mainwindow 0
to disable this main window focus grabbing.
By default this setting is enabled.
Sorry I forgot this long standing option. (I also use this disabled autofocus setting).
Can you please add/change this option in your xschemrc and test?
Working perfectly! Super rapid changes!
For example, with this voltage source, it would be nice if I could just click the
1
and type2
then click away or hit enter.Would pair with #166 .
Speculation on details of how this could be implementable:
@variable
. (Otherwise, xschem wouldn't know what you want to change.)