From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <52ADCCE9.7000507@gmx.de> References: <52ADCCE9.7000507@gmx.de> Date: Sun, 15 Dec 2013 10:19:15 -0600 Message-ID: From: Blake McBride To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=001a11c2d3de7c4db904ed950eac Subject: Re: [9fans] Acme: spaces in file names Topicbox-Message-UUID: 9b1d7370-ead8-11e9-9d60-3106f5b1d025 --001a11c2d3de7c4db904ed950eac Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Blake-Mac-17:tmp blake$ 9p read plumb/rules 9p: mount: dial unix!/tmp/ns.blake._tmp_launch-nvfpC3_org.x:0/plumb: connect /tmp/ns.blake._tmp_launch-nvfpC3_org.x:0/plumb: No such file I don't have to do this when I search for text with spaces, or to execute a command with spaces. Not being able to load files or directories with spaces is, and I mean this in the most respectfull way, short sighted and inconsistent IMO. As long as a fix doesn't limit some existing functionality, I think it should be corrected. I am qualified to make such a correction but, not being familiar with the code, I estimate it would take me a whole day to do. I'd bet it would take someone famaliar with the code an hour. My time, like all of yours, is very limited. I will make the change when my time permits. My hope is that someone more familiar with the code can make it before then. Thanks. Blake On Sun, Dec 15, 2013 at 9:38 AM, Friedrich Psiorz wrote: > I think the reason is that filenames with spaces are not very common in > Plan 9. > If you're running plumber, you can probably adjust the regular > exressions for file matching in your $HOME/lib/plumbing file. > > If you don't have that file yet: > 9p read plumb/rules >$HOME/lib/plumbing > > ~Fritz > > Am 15.12.2013 16:25, schrieb Blake McBride: > > Discovering button-3-drag, is there a reason button-3-drag could not be > > made to load a file or directory with spaces in it? In other words, > > would this conflict with some other intended operation? > > > > Thanks. > > > > Blake > > > > > > > > On Thu, Dec 12, 2013 at 3:10 PM, Blake McBride > > wrote: > > > > When you button-2-click on text acme executes the word. If you wan= t > > to execute something larger with spaces, you highlight the whole > > thing and then button-2-click on it to execute the whole thing. > > > > When you button-3-click on text in a file list buffer acme loads th= e > > file with that name. I should be able to highlight a file name wit= h > > spaces and then button-3-click on it to load the file. This would > > be totally consistent. > > > > It there a reason this hasn't been done? > > > > Thanks. > > > > Blake > > > > > > > > On Thu, Dec 12, 2013 at 11:00 AM, Rub=E9n Berenguel > > > wrote: > > > > A kind of crude workaround is using the whole > > /Users/whatever/file with spaces, selecting it with first butto= n > > and 1-2 chording it to Get. This works on Mac, problem is that > > it's quite horrible to do. An intermediate solution may be to > > use some piping rule like sp:filename with spaces, but I don't > > remember if piping works with right-button and selected text or > > follows the same rules as opening a file. > > > > Ruben > > > > > > On Thu, Dec 12, 2013 at 5:53 PM, Robert Raschke > > > > wrote: > > > > Someone once made a little filesystem that would substitute > > spaces in filenames with a different character. When placed > > between the normal fs and Acme, this would make things work > > quite nicely. > > > > If I remember correctly, Acme-SAC (built on top of Inferno) > > does that by default. > > > > No idea where you can find such a fs for Mac though. But > > this might give you a start. > > > > Robby > > > > On Dec 11, 2013 6:19 PM, "Blake McBride" > > wrote: > > > > Greetings, > > > > Just started using acme (and sam). Cool. > > > > I am using acme on a Mac form plan9port. > > > > Within a file list one can right-click a listing in > > order to decend into another directory or load a file. > > The problem is that neither work if a space is > > contained within the name. Apparently, the right-click > > functionality only looks at non-white space strings. A= n > > easy fix to this would be to allow the user to highligh= t > > the entire string (including spaces) and then > > right-click as normal. The system would allow the > > highlight facility to override the "just test for > > contigous non-space string" current functionality. > > > > Any thoughts on this? > > > > Thanks. > > > > Blake McBride > > > > > > > > > > > --001a11c2d3de7c4db904ed950eac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Blake-Mac-17:tmp blake$ 9p read plumb/rules
9p: mount:= dial unix!/tmp/ns.blake._tmp_launch-nvfpC3_org.x:0/plumb: connect /tmp/ns.= blake._tmp_launch-nvfpC3_org.x:0/plumb: No such file=A0

I don't have to do this when I search for text with spaces, or to = execute a command with spaces. =A0Not being able to load files or directori= es with spaces is, and I mean this in the most respectfull way, short sight= ed and inconsistent IMO. =A0As long as a fix doesn't limit some existin= g functionality, I think it should be corrected. =A0I am qualified to make = such a correction but, not being familiar with the code, I estimate it woul= d take me a whole day to do. =A0I'd bet it would take someone famaliar = with the code an hour. =A0My time, like all of yours, is very limited. =A0I= will make the change when my time permits. =A0My hope is that someone more= familiar with the code can make it before then.

Thanks.

Blake



On = Sun, Dec 15, 2013 at 9:38 AM, Friedrich Psiorz <f.psiorz@gmx.de> wrote:
I think the reason is that filenames with sp= aces are not very common in
Plan 9.
If you're running plumber, you can probably adjust the regular
exressions for file matching in your $HOME/lib/plumbing file.

If you don't have that file yet:
9p read plumb/rules >$HOME/lib/plumbing

~Fritz

Am 15.12.2013 16:25, schrieb Blake McBride:
> Discovering button-3-drag, is there a reason = button-3-drag could not be
> made to load a file or directory with spaces in it? =A0In other words,=
> would this conflict with some other intended operation?
>
> Thanks.
>
> Blake
>
>
>
> On Thu, Dec 12, 2013 at 3:10 PM, Blake McBride <blake@mcbride.name
> <mailto:blake@mcbride.name>> wrote:
>
> =A0 =A0 When you button-2-click on text acme executes the word. =A0If = you want
> =A0 =A0 to execute something larger with spaces, you highlight the who= le
> =A0 =A0 thing and then button-2-click on it to execute the whole thing= .
>
> =A0 =A0 When you button-3-click on text in a file list buffer acme loa= ds the
> =A0 =A0 file with that name. =A0I should be able to highlight a file n= ame with
> =A0 =A0 spaces and then button-3-click on it to load the file. =A0This= would
> =A0 =A0 be totally consistent.
>
> =A0 =A0 It there a reason this hasn't been done?
>
> =A0 =A0 Thanks.
>
> =A0 =A0 Blake
>
>
>
> =A0 =A0 On Thu, Dec 12, 2013 at 11:00 AM, Rub=E9n Berenguel
> =A0 =A0 <ruben@mostlymaths.net <mailto:ruben@mostlymaths.net>> wrote:
>
> =A0 =A0 =A0 =A0 A kind of crude workaround is using the whole
> =A0 =A0 =A0 =A0 /Users/whatever/file with spaces, selecting it with fi= rst button
> =A0 =A0 =A0 =A0 and 1-2 chording it to Get. This works on Mac, problem= is that
> =A0 =A0 =A0 =A0 it's quite horrible to do. An intermediate solutio= n may be to
> =A0 =A0 =A0 =A0 use some piping rule like sp:filename with spaces, but= I don't
> =A0 =A0 =A0 =A0 remember if piping works with right-button and selecte= d text or
> =A0 =A0 =A0 =A0 follows the same rules as opening a file.
>
> =A0 =A0 =A0 =A0 Ruben
>
>
> =A0 =A0 =A0 =A0 On Thu, Dec 12, 2013 at 5:53 PM, Robert Raschke
> =A0 =A0 =A0 =A0 <rtrlists@googlemail.com <mailto:rtrlists@googlemail.com>> wrote: >
> =A0 =A0 =A0 =A0 =A0 =A0 Someone once made a little filesystem that wou= ld substitute
> =A0 =A0 =A0 =A0 =A0 =A0 spaces in filenames with a different character= . When placed
> =A0 =A0 =A0 =A0 =A0 =A0 between the normal fs and Acme, this would mak= e things work
> =A0 =A0 =A0 =A0 =A0 =A0 quite nicely.
>
> =A0 =A0 =A0 =A0 =A0 =A0 If I remember correctly, Acme-SAC (built on to= p of Inferno)
> =A0 =A0 =A0 =A0 =A0 =A0 does that by default.
>
> =A0 =A0 =A0 =A0 =A0 =A0 No idea where you can find such a fs for Mac t= hough. But
> =A0 =A0 =A0 =A0 =A0 =A0 this might give you a start.
>
> =A0 =A0 =A0 =A0 =A0 =A0 Robby
>
> =A0 =A0 =A0 =A0 =A0 =A0 On Dec 11, 2013 6:19 PM, "Blake McBride&q= uot; <blake@mcbride.name
> =A0 =A0 =A0 =A0 =A0 =A0 = <mailto:blake@mcbride.name>= > wrote:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Greetings,
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Just started using acme (and sam). =A0= Cool.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 I am using acme on a Mac form plan9por= t.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Within a file list one can right-click= a listing in
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 order to decend into another directory= or load a file.
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0The problem is that neither work if= a space is
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 contained within the name. =A0Apparent= ly, the right-click
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 functionality only looks at non-white = space strings. =A0An
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 easy fix to this would be to allow the= user to highlight
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 the entire string (including spaces) a= nd then
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 right-click as normal. =A0The system w= ould allow the
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 highlight facility to override the &qu= ot;just test for
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 contigous non-space string" curre= nt functionality.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Any thoughts on this?
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Thanks.
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Blake McBride
>
>
>
>



--001a11c2d3de7c4db904ed950eac--