9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Look vs. Edit?
@ 2013-09-10 16:11 James A. Robinson
  2013-09-10 16:27 ` lucio
  0 siblings, 1 reply; 6+ messages in thread
From: James A. Robinson @ 2013-09-10 16:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

Hi folks,

Does the Look command offer any functionality
over the Edit command when it comes to searching
a document?  The man page indicates it's just a
literal search command, and it seems as though the
Edit command allows for that and much more.

I'm curious about the decision to automatically
embed Look in the tag of windows instead of
Edit....


Jim

[-- Attachment #2: Type: text/html, Size: 557 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Look vs. Edit?
  2013-09-10 16:11 [9fans] Look vs. Edit? James A. Robinson
@ 2013-09-10 16:27 ` lucio
  2013-09-10 16:54   ` Aram Hăvărneanu
  0 siblings, 1 reply; 6+ messages in thread
From: lucio @ 2013-09-10 16:27 UTC (permalink / raw)
  To: jimr, 9fans

> I'm curious about the decision to automatically
> embed Look in the tag of windows instead of
> Edit....

I use Look when I want to find a literal value, irrespective of it
containing special regular expression characters.  It's always been my
understanding that Look is intended for this purpose and I don't see
that Edit could be more efficient at it.

Historically, Look has been on the tag line a lot longer than Edit has
even existed in acme, if memory serves.

++L




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Look vs. Edit?
  2013-09-10 16:27 ` lucio
@ 2013-09-10 16:54   ` Aram Hăvărneanu
  2013-09-11 16:28     ` Lee Fallat
  0 siblings, 1 reply; 6+ messages in thread
From: Aram Hăvărneanu @ 2013-09-10 16:54 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: jimr

Look is useful because you can B2 on it.

-- 
Aram Hăvărneanu



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Look vs. Edit?
  2013-09-10 16:54   ` Aram Hăvărneanu
@ 2013-09-11 16:28     ` Lee Fallat
  2013-09-11 16:36       ` dexen deVries
  0 siblings, 1 reply; 6+ messages in thread
From: Lee Fallat @ 2013-09-11 16:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Personally, I have replaced Look with Edit because I just highlight-B3 and
it searches. Plus I use the sam command language a lot.


On Tue, Sep 10, 2013 at 12:54 PM, Aram Hăvărneanu <aram.h@mgk.ro> wrote:

> Look is useful because you can B2 on it.
>
> --
> Aram Hăvărneanu
>
>

[-- Attachment #2: Type: text/html, Size: 652 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Look vs. Edit?
  2013-09-11 16:28     ` Lee Fallat
@ 2013-09-11 16:36       ` dexen deVries
  2013-09-11 17:15         ` Bence Fábián
  0 siblings, 1 reply; 6+ messages in thread
From: dexen deVries @ 2013-09-11 16:36 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Wednesday 11 of September 2013 12:28:16 Lee Fallat wrote:
> Personally, I have replaced Look with Edit because I just highlight-B3 and
> it searches. Plus I use the sam command language a lot.


Look is guaranteed to be side-effect free, while B3 can end up invoking any 
program as defined in /usr/$user/lib/plumbing.


i used to have a (now long forgotten) script perform some operation on current 
Git repository upon B3 on SHA1.


-- 
dexen deVries

[[[↓][→]]]

Take care of the luxuries and the necessities will take care of themselves.
                -- L. Long




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [9fans] Look vs. Edit?
  2013-09-11 16:36       ` dexen deVries
@ 2013-09-11 17:15         ` Bence Fábián
  0 siblings, 0 replies; 6+ messages in thread
From: Bence Fábián @ 2013-09-11 17:15 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

Look's strength is B2-1.
You highlight something in one window, and B2-1 on Look in another.
I use this a lot. For example when i have a .c and a .h file open
side-by-side.


2013/9/11 dexen deVries <dexen.devries@gmail.com>

> On Wednesday 11 of September 2013 12:28:16 Lee Fallat wrote:
> > Personally, I have replaced Look with Edit because I just highlight-B3
> and
> > it searches. Plus I use the sam command language a lot.
>
>
> Look is guaranteed to be side-effect free, while B3 can end up invoking any
> program as defined in /usr/$user/lib/plumbing.
>
>
> i used to have a (now long forgotten) script perform some operation on
> current
> Git repository upon B3 on SHA1.
>
>
> --
> dexen deVries
>
> [[[↓][→]]]
>
> Take care of the luxuries and the necessities will take care of themselves.
>                 -- L. Long
>
>
>

[-- Attachment #2: Type: text/html, Size: 1334 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-11 17:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-10 16:11 [9fans] Look vs. Edit? James A. Robinson
2013-09-10 16:27 ` lucio
2013-09-10 16:54   ` Aram Hăvărneanu
2013-09-11 16:28     ` Lee Fallat
2013-09-11 16:36       ` dexen deVries
2013-09-11 17:15         ` Bence Fábián

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).