<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> [list split] would accept negative indices (counting from the end)<br></blockquote><div><br></div><div>+10! <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 24 mars 2022 à 08:16, IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On 3/23/22 20:44, Alexandre Torres Porres wrote:<br>
> <br>
> So, one thing I'd like, just get the filename and extension from [file<br>
> split] as an option, so I wouldn't need [list split]. <br>
<br>
i think the best would be if [list split] would accept negative indices <br>
(counting from the end), to simply extraxt the last element of a list.<br>
<br>
> Also, something weird<br>
> happened and files with space in its name came out as 'lists', not symbols.<br>
<br>
i'm not sure i can follow.<br>
[file split] always outputs a list, regardless of spaces.<br>
ifa filename contains spaces, i here get something like:<br>
[list foo\ bar.pd(<br>
(that's a "list"-message with a single symbol-atom "foo bar.pd")<br>
<br>
however, i noticed that my unit-tests (that are automatically run on <br>
linux, windows and macOS) do not cover splitting files with spaces.<br>
so i might have missed some cross-platform thing.<br>
<br>
> <br>
> Another thing is just an easier way to 'seek' for files with a specific<br>
> extension and also get the number of found files.<br>
<br>
that seems very high-level to me.<br>
<br>
(aka: build your abstraction around [file] to get this and a graphical <br>
pull-down menu for chosing files and playing the soundfile)<br>
<br>
> <br>
> And yes, getting the patch's directory by default would make things easier<br>
> and bypass the need of [pdcontrol].<br>
<br>
there's an open PR that adds [file patchpath] (and more).<br>
<br>
<br>
gfdmasrf<br>
IOhannes<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>