Mail Archives: geda-user/2024/05/02/13:29:34
This is a multi-part message in MIME format.
--------------0Vu4arysc01D9fg7O9wDpsfo
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hello Vladimir,
Op 02-05-2024 om 17:49 schreef Vladimir Zhbanov (vzhbanov AT gmail DOT com)
[via geda-user AT delorie DOT com]:
> Richard,
>
> "Richard Rasker (rasker AT linetec DOT nl) [viageda-user AT delorie DOT com]"<geda-user AT delorie DOT com> writes:
> ...
>> Ah, yes, that was what was missing, thanks!
>>
>> And it has already come in handy too!
> The next steps in such a little automation could be:
> - Get rid of global variables in the script.
Um, nope. The next step would be
- Get acquainted with Guile.
At least for me (I never saw a Guile script in my life before this one) :-)
> - Create a custom function that outputs what you want.
Well, yes, I already thought that it would be nice to be able to specify
a higher starting number than 1, in case I want to use 1-100 for page 1,
101-200 for page 2 etcetera. But then the script would need to accept
user input as well.
> - (Maybe engage the simple message dialog for output.)
> - Add a shortcut for the function to quickly launch it in GUI.
Yup, that would be nice too. Now it takes two keystrokes (G S) and a
double click on the script file name.
> - Load the script once (maybe from your project's gschemrc, or
> manually).
> ...
> - Enjoy ;-)
I'll certainly take a closer look at things, but right now, finishing
the project has absolute priority, and this script has already saved me
some time there ;-)
Regards,
Richard
--------------0Vu4arysc01D9fg7O9wDpsfo
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello Vladimir,<br>
</p>
<div class="moz-cite-prefix">Op 02-05-2024 om 17:49 schreef Vladimir
Zhbanov (<a class="moz-txt-link-abbreviated" href="mailto:vzhbanov AT gmail DOT com">vzhbanov AT gmail DOT com</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>]:<br>
</div>
<blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
<pre class="moz-quote-pre" wrap="">
Richard,
"Richard Rasker (<a class="moz-txt-link-abbreviated" href="mailto:rasker AT linetec DOT nl">rasker AT linetec DOT nl</a>) [via <a class="moz-txt-link-abbreviated" href="mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>]" <a class="moz-txt-link-rfc2396E" href="mailto:geda-user AT delorie DOT com"><geda-user AT delorie DOT com></a> writes:
...
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Ah, yes, that was what was missing, thanks!
And it has already come in handy too!
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
The next steps in such a little automation could be:
- Get rid of global variables in the script.</pre>
</blockquote>
<p>Um, nope. The next step would be</p>
<p>- Get acquainted with Guile.<br>
</p>
<p>At least for me (I never saw a Guile script in my life before
this one) :-)<span style="white-space: pre-wrap">
</span></p>
<blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
<pre class="moz-quote-pre" wrap="">- Create a custom function that outputs what you want.</pre>
</blockquote>
Well, yes, I already thought that it would be nice to be able to
specify a higher starting number than 1, in case I want to use 1-100
for page 1, 101-200 for page 2 etcetera. But then the script would
need to accept user input as well.<span
style="white-space: pre-wrap">
</span>
<blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
<pre class="moz-quote-pre" wrap="">- (Maybe engage the simple message dialog for output.)
- Add a shortcut for the function to quickly launch it in GUI.</pre>
</blockquote>
Yup, that would be nice too. Now it takes two keystrokes (G S) and a
double click on the script file name.
<blockquote type="cite" cite="mid:87a5l8nr2y DOT fsf AT gmail DOT com">
<pre class="moz-quote-pre" wrap="">- Load the script once (maybe from your project's gschemrc, or
manually).
...
- Enjoy ;-)</pre>
</blockquote>
<p>I'll certainly take a closer look at things, but right now,
finishing the project has absolute priority, and this script has
already saved me some time there ;-)</p>
<p>Regards,</p>
<p>Richard<br>
</p>
</body>
</html>
--------------0Vu4arysc01D9fg7O9wDpsfo--
- Raw text -