I have vaguely wondered "what does Leo allow in path directives" myself.
Isn't the list of 'what characters are allowed in directory names' OS-dependent?? On Thursday, April 24, 2025 at 2:04:21 PM UTC+1 Edward K. Ream wrote: > Issue #4339 <https://github.com/leo-editor/leo-editor/issues/4339> raises > a subtle question. What characters should be valid in Leo's @path > directives? > > > The existing code defines the valid characters with this regex: > > > r"^@path\s+([\w_:/\\]+)" > > > In other words, the valid characters are: > > -- Unicode word characters. > > -- Underscores. > > -- The three common path separators: colon, slash, and backslash. > > > But many more characters are typically valid in *directory > <https://en.wikipedia.org/wiki/Filename>* names > <https://en.wikipedia.org/wiki/Filename>, including blanks! > > > The most general scheme would be to allow *all** printable* characters in > an @path directive except trailing blanks. > > > What do you all think? > > > Edward > > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/737697ca-6957-4b63-b4cc-df89ed7e68e1n%40googlegroups.com.
