9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Breaking up long lines in sam into more manageable ones
@ 2021-08-25 18:20 revcomninos
  2021-08-25 18:31 ` David Leimbach via 9fans
  2021-08-25 18:49 ` Humm
  0 siblings, 2 replies; 7+ messages in thread
From: revcomninos @ 2021-08-25 18:20 UTC (permalink / raw)
  To: 9fans

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

I would like to be able to break up long lines in sam in a way similar to the way I break them up in ed. For ed, I rely on the external command !fold -s -w80 %.

This did not work for me in sam. What would be the best way to achieve this in sam? And is there a format line(s) command I could use? 

Many thanks. 
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M1c04b967118bc3df845c887a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-25 18:20 [9fans] Breaking up long lines in sam into more manageable ones revcomninos
@ 2021-08-25 18:31 ` David Leimbach via 9fans
  2021-08-26 22:01   ` fwrm via 9fans
  2021-08-25 18:49 ` Humm
  1 sibling, 1 reply; 7+ messages in thread
From: David Leimbach via 9fans @ 2021-08-25 18:31 UTC (permalink / raw)
  To: 9fans

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

Try in the tagline 
Edit ,|fold -s -w80
Highlight it and middle click it.




Sent from my iPad

> On Aug 25, 2021, at 8:20 AM, revcomninos@gmail.com wrote:
> 
> 
> I would like to be able to break up long lines in sam in a way similar to the way I break them up in ed. For ed, I rely on the external command !fold -s -w80 %.
> 
> This did not work for me in sam. What would be the best way to achieve this in sam? And is there a format line(s) command I could use? 
> 
> Many thanks. 
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M61bada46ff3aab1a9434e6b5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-25 18:20 [9fans] Breaking up long lines in sam into more manageable ones revcomninos
  2021-08-25 18:31 ` David Leimbach via 9fans
@ 2021-08-25 18:49 ` Humm
  1 sibling, 0 replies; 7+ messages in thread
From: Humm @ 2021-08-25 18:49 UTC (permalink / raw)
  To: 9fans

> I would like to be able to break up long lines in sam in a way 
> similar to the way I break them up in ed. For ed, I rely on the 
> external command !fold -s -w80 %.
>
> This did not work for me in sam. What would be the best way to 
> achieve this in sam? And is there a format line(s) command I could 
> use? 
        | Plan 9-command
               Send the range to the standard input, and replace it by 
               the standard output, of the Plan 9 command.

Thus, run something like `,|fold -s` or `,|fmt` to format long lines 
in, for example, your emails.

-- 
Humm

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M93188a3c4a4e50f7988df1b7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-25 18:31 ` David Leimbach via 9fans
@ 2021-08-26 22:01   ` fwrm via 9fans
  2021-08-26 22:47     ` David Leimbach via 9fans
  0 siblings, 1 reply; 7+ messages in thread
From: fwrm via 9fans @ 2021-08-26 22:01 UTC (permalink / raw)
  To: 9fans

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

On Wednesday, 25 August 2021, at 9:31 PM, David Leimbach wrote:
> Try in the tagline 
> Edit ,|fold -s -w80
> Highlight it and middle click it.

Yeah but that's acme not sam.

You can do: ,|your_cmd
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M59f260c07265cbbe30e9c897
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-26 22:01   ` fwrm via 9fans
@ 2021-08-26 22:47     ` David Leimbach via 9fans
  2021-08-27  8:55       ` revcomninos
  0 siblings, 1 reply; 7+ messages in thread
From: David Leimbach via 9fans @ 2021-08-26 22:47 UTC (permalink / raw)
  To: 9fans

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



Sent from my iPad

> On Aug 26, 2021, at 12:01 PM, fwrm via 9fans <9fans@9fans.net> wrote:
> 
> 
>> On Wednesday, 25 August 2021, at 9:31 PM, David Leimbach wrote:
>> Try in the tagline 
>> Edit ,|fold -s -w80
>> Highlight it and middle click it.
> 
> Yeah but that's acme not sam.

Oh yeah! Sorry….

> 
> You can do: ,|your_cmd
> 9fans / 9fans / see discussions + participants + delivery options Permalink

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M7bea4a61bbec9c44457d0721
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-26 22:47     ` David Leimbach via 9fans
@ 2021-08-27  8:55       ` revcomninos
  2021-09-02 19:10         ` Conor Williams
  0 siblings, 1 reply; 7+ messages in thread
From: revcomninos @ 2021-08-27  8:55 UTC (permalink / raw)
  To: 9fans

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

Thank you so much for these answers. I greatly appreciate it. 
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M7b0cae6b9565025cd21584fa
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

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

* Re: [9fans] Breaking up long lines in sam into more manageable ones
  2021-08-27  8:55       ` revcomninos
@ 2021-09-02 19:10         ` Conor Williams
  0 siblings, 0 replies; 7+ messages in thread
From: Conor Williams @ 2021-09-02 19:10 UTC (permalink / raw)
  To: 9fans


[-- Attachment #1.1: Type: text/plain, Size: 741 bytes --]

bonjourno.k/c

On Fri, Aug 27, 2021 at 8:56 AM <revcomninos@gmail.com> wrote:

> Thank you so much for these answers. I greatly appreciate it.
> *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/T8df760861ae2c8cd-M7b0cae6b9565025cd21584fa>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T8df760861ae2c8cd-M7ebcd35a3f144a3a9bab8e2c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #1.2: Type: text/html, Size: 1126 bytes --]

[-- Attachment #2: awkhk1.png --]
[-- Type: image/png, Size: 12225 bytes --]

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

end of thread, other threads:[~2021-09-02 19:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-25 18:20 [9fans] Breaking up long lines in sam into more manageable ones revcomninos
2021-08-25 18:31 ` David Leimbach via 9fans
2021-08-26 22:01   ` fwrm via 9fans
2021-08-26 22:47     ` David Leimbach via 9fans
2021-08-27  8:55       ` revcomninos
2021-09-02 19:10         ` Conor Williams
2021-08-25 18:49 ` Humm

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