9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Mark van Atten <vanattenmark@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Searching sam for text
Date: Mon, 2 Aug 2021 18:49:47 +0200	[thread overview]
Message-ID: <CALAsyW0FvaxQ6PdEQaWWbty70uPbOmRHXUqPnk5HQ8Vs4TT0ng@mail.gmail.com> (raw)
In-Reply-To: <16279223340.fae65.10513@composer.9fans.topicbox.com>

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

On Mon, 2 Aug 2021, 6:39 pm , <revcomninos@gmail.com> wrote:

> In sam if I invoke ,x g/<string>/+-p sam prints out the hits in the sam
> window by lines. I was wondering if there is a way of going from any of
> those search results directly to the line in the document where the string
> occurs?
>

Combine the p with an =.

Mark.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-M16cde7774dd49444a12e5e6c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

  parent reply	other threads:[~2021-08-02 16:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-02 16:38 revcomninos
2021-08-02 16:47 ` Paul Lalonde
2021-08-02 17:18   ` revcomninos
2021-08-02 17:21   ` silas poulson
2021-08-02 17:55     ` Mark van Atten
2021-08-02 16:49 ` Mark van Atten [this message]
2021-08-02 17:20   ` revcomninos
2021-08-02 17:47     ` Mark van Atten
2021-08-02 19:00       ` revcomninos
2021-08-02 19:04         ` Mark van Atten
2021-08-02 19:20           ` revcomninos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALAsyW0FvaxQ6PdEQaWWbty70uPbOmRHXUqPnk5HQ8Vs4TT0ng@mail.gmail.com \
    --to=vanattenmark@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).