StefanSchippers / xschem

A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
Other
317 stars 21 forks source link

[RFC] jump straight to singleton subdirs #176

Closed qpwo closed 7 months ago

qpwo commented 7 months ago

If a directory has one directory inside it and nothing else, then you could jump into the subdir.

For example, left bar could just show ..../xschem_library/devices

image

I think just handling this on the left bar (and doing nothing to singleton dirs in the right bar) would be 80% of value.

How it's done in eg vscode:

image

((Do let me know if all these tiny RFCs are too much!))

StefanSchippers commented 7 months ago

The listbox on the left by default lists the directories as they are given in XSCHEM_LIBRARY_PATH.

for sky130 the default is to set all paths one level above the directories containing the symbols/schematcs, so a vsource.sym placed into a schematic will have a reference devices/vsource.sym.

Descending into singleton directories breaks the convention of displaying the search path on the left when opening the dialog (or when HOME button is pressed). You can use the TAB key to focus the left listbox and use arrow keys to change directories, but will not automatically descend, otherwise everytime you select the singleton directory it will automatically descend and you can't navigate to the other dirs without first returning from it.

qpwo commented 7 months ago

Ah makes sense. I hadn't considered that.