Re: [9fans] Deleting lines in sam - d

2022-05-11 Thread umbraticus
I mean, if you really want it, you can ,|awk '{print NR "\t" $0}' then ,x/^[0-9]+ /d or something. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tc5c492077a61275c-Mf73fea5ddae7354548491a99 Delivery options: https://

Re: [9fans] Deleting lines in sam - d

2022-05-11 Thread Chris Fröschl
revcomni...@gmail.com wrote: > Many thanks. I will apply your solutions and revert back. It just seems a > little counter intuitive not to be able to show the line numbers as ed > does,especially if one is viewing a large body of text.  You can also try: unix: ,>nl plan9: ,x {

Re: [9fans] Deleting lines in sam - d

2022-05-11 Thread revcomninos
Many thanks. I will apply your solutions and revert back. It just seems a little counter intuitive not to be able to show the line numbers as ed does,especially if one is viewing a large body of text.  -- 9fans: 9fans Permalink: https://9fans.topicbox.com/

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread umbraticus
Don't forget Esc cuts a selection. umbraticus -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T06d3bdd208f5a90b-Maa4736ab2beb35086413d070 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Deleting lines in sam - d

2022-05-11 Thread umbraticus
= prints line number 3,7d deletes some lines Setting and working with the mark may also suit your problem find a place, press k, find another place, then ',.d or .,' deletes everything in between. Multiple marks à la ed would be a nice addition to sam. umbraticus P.S. Here's a patch to make = mo

[9fans] Deleting lines in sam - d

2022-05-11 Thread revcomninos
In ed one can show line numbers using n. To delete line nubers is thus easy. In sam - d it appears this is not possible. I understand sam is not a line editor. What the would be the best way to delete a range of lines?  -- 9fans: 9fans Permalink: https://9

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread Ben Huntsman
Thank you Mark. That was exactly what I was looking for. -Ben From: Mark van Atten Sent: Wednesday, May 11, 2022 8:57 AM To: 9fans <9fans@9fans.net> Subject: Re: [9fans] acme & sam text selection and delete deletes extra character >Just curious, is this by

[9fans] Re: Making multiple changes to dot using sam -d

2022-05-11 Thread revcomninos
Thank you! I was erring in that I failed to repeat x. -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T06c9db1e30f71346-Mdb19a92f81130bed1063af3c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread michaelian ennis
The world is a little less interesting without Boyd. Ian -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T06d3bdd208f5a90b-M678c6793049db2d0dbec0bb4 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread Richard Miller
Sorry, I seem to have hit Post by accident. Too bad there isn't an Undo for that ... -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf6b94eeff34dd2d7-M14a02dd591c5a573d33f2477 Delivery options: https://9fans.topicbox.com/groups/9fans/su

[9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread Richard Miller
Hi there- Please pardon the dumb question if this has been covered before. I did some brief searches of the archive and couldn't find it... I'm running plan9port on macOS. I noticed that in acme, (and also sam) if I select part of a string and p delete, the selection gets deleted and a

Re: [9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread Mark van Atten
>Just curious, is this by design, or is this a bug? I'm inclined to think > it's by design as it occurs within sam as well. https://9fans.topicbox.com/groups/9fans/Tf778565df277dd77-M396229d3fd3befcd0bcc95df/re2-9fans-home-end-hjkl Mark. -- 9fans: 9f

[9fans] acme & sam text selection and delete deletes extra character

2022-05-11 Thread Ben Huntsman
Hi there- Please pardon the dumb question if this has been covered before. I did some brief searches of the archive and couldn't find it... I'm running plan9port on macOS. I noticed that in acme, (and also sam) if I select part of a string and press delete, the selection gets deleted and

[9fans] Re: Making multiple changes to dot using sam -d

2022-05-11 Thread Silas
Hi, Yep, seems you can combine changes with ,x { x/sam/c/sam -d/ x/teh/c/the/ } Adding an optional guard before the opening brace. Note the changes must be correct way round otherwise you get the error "?changes not in sequence" Silas -- 9fans: 9fans P

[9fans] Making multiple changes to dot using sam -d

2022-05-11 Thread revcomninos
I am running sam -d in a Debian Linux Subsystem on Windows. I am editing a series of documents that require several changes per line(s). I can for instance change: I love working in sam in teh terminal to I love working in sam -d in the terminal using: .x/sam/c/sam -d/ .x/teh/c/the Is it po