Feature - gschem - Dynamic loading of custom symbols in the component selection tree
Bug #901222 reported by
Luigi S. Palese
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
As attachment a Guile script which extends the (component-library ...) functionality in order to permit to see custom components in the component selection tree grouped by folders.
The syntax of the new functionality is as follow:
into the .gEDA/gafrc file
(component-
The prefix will be added, as a tag, to the folder description. Actually the script doesn't manage substitution of the environment variables.
If usefull this script could be added to the main stream.
Best Regards,
Luigi
Changed in geda: | |
milestone: | none → 1.8.0 |
Changed in geda: | |
milestone: | 1.8.0 → 1.7.2 |
Changed in geda: | |
assignee: | Peter TB Brett (peter-b) → nobody |
Changed in geda: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Luigi,
Thank you for submitting this Scheme function. In order to commit it, I would appreciate it if you would make the following changes:
* The license for gEDA/gaf is GPLv2+. Could you please relicense as GPLv2+ instead of GPLv3+?
* The line with "string-trim-right" is not necessary, and prevents you from using directory names that start or end with whitespace (you wouldn't believe some of the things I've seen Windows users do!)
* Please use "substring" instead of "string-copy". This makes it easier to read the code, because it explains what you are doing better. :-)
* We don't use per-file changelogs in gEDA/gaf -- we write useful commit messages for git instead. :-) If this is accepted, the changelog section will need to be removed.
As you are probably aware, we currently have a "component- library- search" function in libgeda, and this behaves in a very similar way. What do you think about putting this in as an improved replacement for "component- library- search" , and make the "prefix" argument optional?
(use-modules (ice-9 optargs))
(define (component- library- search dirname #:optional prefix)
<body ...> )
Thanks,
Peter