* [9fans] Long tags in acme @ 2005-03-14 18:43 Paul Lalonde 2005-03-14 19:04 ` Russ Cox 2005-03-14 19:45 ` andrey mirtchovski 0 siblings, 2 replies; 11+ messages in thread From: Paul Lalonde @ 2005-03-14 18:43 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs I'm sure I'm missing something. I'm being forced to work with obscenely long paths that I don't control, and that's causing my tags to overflow the width of the columns. Short of making my acme window span another monitor is there something I can do to have it abbreviate the filenames? I'm running a recent p9port on OS X. Thanks, Paul ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 18:43 [9fans] Long tags in acme Paul Lalonde @ 2005-03-14 19:04 ` Russ Cox 2005-03-14 19:45 ` andrey mirtchovski 1 sibling, 0 replies; 11+ messages in thread From: Russ Cox @ 2005-03-14 19:04 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs There is a tagged version of acme in the CVS repository that abbreviates tags using environment variables, but it's not the default because doing it right requires letting the plumber know about environment variables too. I typically create some symlinks and just use those, although it can get confusing when you end up with windows using both the symlink'ed name and the real name. Russ On Mon, 14 Mar 2005 10:43:12 -0800, Paul Lalonde <plalonde@telus.net> wrote: > I'm sure I'm missing something. > I'm being forced to work with obscenely long paths that I don't > control, and that's causing my tags to overflow the width of the > columns. Short of making my acme window span another monitor is there > something I can do to have it abbreviate the filenames? I'm running a > recent p9port on OS X. > > Thanks, > Paul > > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 18:43 [9fans] Long tags in acme Paul Lalonde 2005-03-14 19:04 ` Russ Cox @ 2005-03-14 19:45 ` andrey mirtchovski 2005-03-14 21:30 ` Rob Pike 1 sibling, 1 reply; 11+ messages in thread From: andrey mirtchovski @ 2005-03-14 19:45 UTC (permalink / raw) To: 9fans > I'm sure I'm missing something. > I'm being forced to work with obscenely long paths that I don't > control, and that's causing my tags to overflow the width of the > columns. Short of making my acme window span another monitor is there > something I can do to have it abbreviate the filenames? I'm running a > recent p9port on OS X. > > Thanks, > Paul you can think of the titlebar as a multi-line window and switch between lines with the mouse -- left click on an acme titlebar with a file name (or commands) wider than the window itself and move it down and up to switch between the different 'lines' (though the '\n' is only implicit). ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 19:45 ` andrey mirtchovski @ 2005-03-14 21:30 ` Rob Pike 2005-03-14 21:57 ` rog 0 siblings, 1 reply; 11+ messages in thread From: Rob Pike @ 2005-03-14 21:30 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs tags should fold. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 21:30 ` Rob Pike @ 2005-03-14 21:57 ` rog 2005-03-14 22:04 ` Russ Cox 0 siblings, 1 reply; 11+ messages in thread From: rog @ 2005-03-14 21:57 UTC (permalink / raw) To: 9fans folding'd be nice, but does anyone else get kinda mesmerised by the sight of all those almost-identical path prefixes? even if tags folded i reckon i'd still find that a problem. i was wondering earlier whether a possible solution might be to add an Alias primitive; e.g. Alias /mnt/term/n/c/usr/rog/c/other/blah/diddoodah blah then any pathnames prefixed by the first argument would show up as non-rooted pathnames prefixed by the second (relative pathnames not really being used in acme tags). similar in a way to the environment variable thing, but more explicit; also similar to russ's symlink trick or doing a local bind, but means that plumbing would still work seamlessly. i bet it'd be really quite simple to implement too. there's probably a good reason why it's a bad idea... ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 21:57 ` rog @ 2005-03-14 22:04 ` Russ Cox 2005-03-14 23:50 ` Heiko Dudzus 0 siblings, 1 reply; 11+ messages in thread From: Russ Cox @ 2005-03-14 22:04 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs I put the dollar sign code back in as acme -'$' in plan9port. The CVS tag version had gotten quite out-of-date. It's undocumented and intentionally hard to type, but maybe someone will start there and figure out a better solution to the problem. There's a big comment on it explaining why it's not such a great idea, but at the same time I know a handful of people have found it useful and were maintaining it themselves. I've recently moved to a 1024x768 laptop screen (from a large 1400x1050) and spent a half hour today making things fit better on my screen: smaller fonts, different acme.dump, etc. I also tried the $env tags again. They're a big win on the small screen. Folding tag lines might be sufficient in my case, but the $env tags are easier to implement. At least now I can run with multiple columns *and* see the Put verb in my tags. Russ ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 22:04 ` Russ Cox @ 2005-03-14 23:50 ` Heiko Dudzus 2005-03-15 0:05 ` Paul Lalonde 0 siblings, 1 reply; 11+ messages in thread From: Heiko Dudzus @ 2005-03-14 23:50 UTC (permalink / raw) To: russcox, 9fans > I've recently moved to a 1024x768 laptop screen (from a > large 1400x1050) and spent a half hour today making things > fit better on my screen: smaller fonts, different acme.dump, > etc. I also tried the $env tags again. They're a big win on > the small screen. Folding tag lines might be sufficient in my > case, but the $env tags are easier to implement. At least > now I can run with multiple columns *and* see the Put verb > in my tags. How about to make button 1 to scroll the tag line to the left and button 3 to scroll it to the left? Sure, it would need reserved space in the tag line where one could commit the "click", because button 1&3 on the tag verbs means something else. (perhaps a square on the righthand side of the tag line; like the one on the left side for positioning?) ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-14 23:50 ` Heiko Dudzus @ 2005-03-15 0:05 ` Paul Lalonde 2005-03-15 0:11 ` andrey mirtchovski 0 siblings, 1 reply; 11+ messages in thread From: Paul Lalonde @ 2005-03-15 0:05 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs; +Cc: russcox I'm most partial to Russ' $env tag, to date. Alias is complicated by the fact that alias interpretation would have to be added to the meaning of text selected in the tag; that's in addition to the environment variable handling that needs to go into the plumber anyhow. As for special regions to click to scroll, I already hate the little window handles, I'd rather see fewer special places than more. Tag scrolling with the first mouse button works fine for those (now) rare cases where the tag is too long. Paul On 14-Mar-05, at 3:50 PM, Heiko Dudzus wrote: >> I've recently moved to a 1024x768 laptop screen (from a >> large 1400x1050) and spent a half hour today making things >> fit better on my screen: smaller fonts, different acme.dump, >> etc. I also tried the $env tags again. They're a big win on >> the small screen. Folding tag lines might be sufficient in my >> case, but the $env tags are easier to implement. At least >> now I can run with multiple columns *and* see the Put verb >> in my tags. > > How about to make button 1 to scroll the tag line to the left and > button 3 to scroll it to the left? > > Sure, it would need reserved space in the tag line where one could > commit the "click", because button 1&3 on the tag verbs means > something else. (perhaps a square on the righthand side of the tag > line; like the one on the left side for positioning?) > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-15 0:05 ` Paul Lalonde @ 2005-03-15 0:11 ` andrey mirtchovski 2005-03-15 0:57 ` Paul Lalonde 0 siblings, 1 reply; 11+ messages in thread From: andrey mirtchovski @ 2005-03-15 0:11 UTC (permalink / raw) To: 9fans > I already hate the little > window handles, how about a resize-able window titlebar? i.e. you can make it as many lines as you want to accomodate all your text by just dragging the lower line of the titlebar. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-15 0:11 ` andrey mirtchovski @ 2005-03-15 0:57 ` Paul Lalonde 2005-03-15 1:17 ` Paul Lalonde 0 siblings, 1 reply; 11+ messages in thread From: Paul Lalonde @ 2005-03-15 0:57 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs This seems not bad; but it still needs the $env trick: Try editing deep in a tree like /Users/plalonde/dev/tuna/RT/contingency/... and you quickly find yourself wasting most of the tag space, which multi-line doesn't help: you still wind up with piles of tag you wish you could put to better use. A useful thing would be to expose the $env expansion switch on a verb, maybe Expand or somesuch, for those times when you do need to see the path. I have a partial hack done for this, but now have to figure out how to re-interpret and update all the tags; I have other work to do before that. Paul On 14-Mar-05, at 4:11 PM, andrey mirtchovski wrote: >> I already hate the little >> window handles, > > how about a resize-able window titlebar? i.e. you can make it as > many lines as you want to accomodate all your text by just dragging > the lower line of the titlebar. > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Long tags in acme 2005-03-15 0:57 ` Paul Lalonde @ 2005-03-15 1:17 ` Paul Lalonde 0 siblings, 0 replies; 11+ messages in thread From: Paul Lalonde @ 2005-03-15 1:17 UTC (permalink / raw) To: Fans of the OS Plan 9 from Bell Labs I lied. I didn't do the other work I should have been doing. Here's a patch that adds the Expand toggle, if anyone else wants it. Paul Index: exec.c =================================================================== RCS file: /cvs/plan9/src/cmd/acme/exec.c,v retrieving revision 1.20 diff -r1.20 exec.c 23a24 > void togexp(Text*, Text*, Text*, int, int, Rune*, int); 79a81 > static Rune LExpand[] = { 'E', 'x', 'p', 'a', 'n', 'd', 0 }; 89a92 > { LExpand, togexp, FALSE, XXX, XXX }, 969a973,986 > togexp(Text *et, Text *_0, Text *_1, int _2, int _3, Rune *_4, int _5) > { > int colidx, winidx; > dodollarsigns = !dodollarsigns; > for(colidx = 0; colidx < row.ncol; ++colidx) > { > for(winidx = 0; winidx < row.col[colidx]->nw; ++winidx) > { > winsettag(row.col[colidx]->w[winidx]); > } > } > } > > void On 14-Mar-05, at 4:57 PM, Paul Lalonde wrote: > This seems not bad; but it still needs the $env trick: Try editing > deep in a tree like /Users/plalonde/dev/tuna/RT/contingency/... and > you quickly find yourself wasting most of the tag space, which > multi-line doesn't help: you still wind up with piles of tag you wish > you could put to better use. > A useful thing would be to expose the $env expansion switch on a verb, > maybe Expand or somesuch, for those times when you do need to see the > path. > I have a partial hack done for this, but now have to figure out how to > re-interpret and update all the tags; I have other work to do before > that. > > Paul > > On 14-Mar-05, at 4:11 PM, andrey mirtchovski wrote: > >>> I already hate the little >>> window handles, >> >> how about a resize-able window titlebar? i.e. you can make it as >> many lines as you want to accomodate all your text by just dragging >> the lower line of the titlebar. >> > ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-03-15 1:17 UTC | newest] Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-03-14 18:43 [9fans] Long tags in acme Paul Lalonde 2005-03-14 19:04 ` Russ Cox 2005-03-14 19:45 ` andrey mirtchovski 2005-03-14 21:30 ` Rob Pike 2005-03-14 21:57 ` rog 2005-03-14 22:04 ` Russ Cox 2005-03-14 23:50 ` Heiko Dudzus 2005-03-15 0:05 ` Paul Lalonde 2005-03-15 0:11 ` andrey mirtchovski 2005-03-15 0:57 ` Paul Lalonde 2005-03-15 1:17 ` Paul Lalonde
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).