[-- Attachment #1: Type: text/plain, Size: 463 bytes --] 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? ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mfcb6bd0926fd38503c309185 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1175 bytes --]
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --] I occasionally do (in acme, sam MMV) ,x/open/+-{ p } It separates the match from the address by a newline, but works well enough for my needs. On Mon, Aug 2, 2021 at 9:39 AM <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? > > > > > *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions > <https://9fans.topicbox.com/groups/9fans> + participants > <https://9fans.topicbox.com/groups/9fans/members> + delivery options > <https://9fans.topicbox.com/groups/9fans/subscription> Permalink > <https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mfcb6bd0926fd38503c309185> > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Md02d6d75af44d1f300cf5be1 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1737 bytes --]
[-- 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 --]
[-- Attachment #1: Type: text/plain, Size: 373 bytes --] On Monday, 2 August 2021, at 6:48 PM, Paul Lalonde wrote: > I occasionally do (in acme, sam MMV) > ,x/open/+-{ > p > } This works. Thanks. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-M34b7a267df5b9586d22eff2e Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1019 bytes --]
[-- Attachment #1: Type: text/plain, Size: 410 bytes --] On Monday, 2 August 2021, at 6:50 PM, Mark van Atten wrote: > Combine the p with an =. If I add = to ,x g/<string>/+-p as in ,x g/<string>/+-p= I get a ?newline expected error. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mc36c6bb2145b285ff23f18bc Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1618 bytes --]
[-- Attachment #1: Type: text/plain, Size: 677 bytes --] On 2 Aug 2021, at 17:47, Paul Lalonde <paul.a.lalonde@gmail.com<mailto:paul.a.lalonde@gmail.com>> wrote: I occasionally do (in acme, sam MMV) ,x/open/+-{ p } For only a few results I’ve found simply ,x/<string>/= and then sending the results good enough, especially Acme where the plumber lets you jump to the result. Sending document to grep with ,> grep -n <string> slightly neater though does mean leaving sam’s command set. Silas ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-M74570921159ae06ff4e5c6be Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1986 bytes --]
[-- Attachment #1: Type: text/plain, Size: 499 bytes --] On Mon, 2 Aug 2021, 7:20 pm , <revcomninos@gmail.com> wrote: > On Monday, 2 August 2021, at 6:50 PM, Mark van Atten wrote: > > Combine the p with an =. > > If I add = to ,x g/<string>/+-p as in ,x g/<string>/+-p= I get a ?newline > expected error. > man sam ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-M0d63103e46b8f5eebf355a05 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 2188 bytes --]
[-- Attachment #1: Type: text/plain, Size: 752 bytes --] On Mon, 2 Aug 2021, 7:22 pm silas poulson, <silas8642@hotmail.co.uk> wrote: > > Sending document to grep with ,> grep -n <string> slightly neater though > does mean leaving sam’s command set. > I usually have a 9term open with the same working directory as the document I am editing, and tend to use that for things outside sam's own language, in combination with the plumber to jump back into sam (e.g. grep -n). (And winwatch helps here, if you have opened more than a small number of terminals.) Mark. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mde8e9f72eeffde61e9f7c747 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1753 bytes --]
[-- Attachment #1: Type: text/plain, Size: 397 bytes --] On Monday, 2 August 2021, at 7:48 PM, Mark van Atten wrote: > man sam I have read the man page several times. It speaks of display commands not of their combinations. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mcafdb371c07efc5e92947a65 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 989 bytes --]
[-- Attachment #1: Type: text/plain, Size: 517 bytes --] On Mon, 2 Aug 2021, 9:00 pm , <revcomninos@gmail.com> wrote: > On Monday, 2 August 2021, at 7:48 PM, Mark van Atten wrote: > > man sam > > I have read the man page several times. It speaks of display commands not > of their combinations. > Look for the part about 'grouping'. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-M2c6a25dda5ee5e0e5c9ba32d Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1610 bytes --]
[-- Attachment #1: Type: text/plain, Size: 401 bytes --] On Monday, 2 August 2021, at 9:05 PM, Mark van Atten wrote: > Look for the part about 'grouping'. Okay. Got it. Thanks. This gives me what I need: ,x g/<string>/{ p } ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T6d4564e82d943342-Mb69acabb528befbbe0367fe5 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription [-- Attachment #2: Type: text/html, Size: 1256 bytes --]