Re: [9fans] A few more questions about sam

2021-08-06 Thread Stuart Morrow
On 06/08/2021, o...@eigenstate.org wrote: > man 6 regexp: http://man.9front.org/6/regexp I wonder if it would be good if libregexp itself could look for a fixed string the way Plan 9 grep does: '*foo' is foo. I've found myself wanting this in Mothra. Can't remember the circumstance. It might be

Re: [9fans] A few more questions about sam

2021-08-06 Thread revcomninos
On Friday, 6 August 2021, at 5:04 PM, ori wrote: > It will not run in your setup. The version of sam you decided to use does not support the operators in that script. Many thanks for your response. You have answered my questions.  -- 9fans: 9fans Permalink:

Re: [9fans] A few more questions about sam

2021-08-06 Thread ori
Quoth revcomni...@gmail.com: > I am running sam as a standalone on Debian 10: > https://9fans.github.io/plan9port/ > I have found this version to be stable and would not like to change it. > I also like the visual display.  > I start up sam from the terminal with a single option: >

Re: [9fans] A few more questions about sam

2021-08-06 Thread revcomninos
On Friday, 6 August 2021, at 2:22 AM, fwrm wrote: > The command ,x/".+"/ would select every string that begins with a double > quote, has one character or more after that, and ends with a double quote. If > we wanted to select only the characters inside double quotes, we could reject > the

Re: [9fans] A few more questions about sam

2021-08-06 Thread revcomninos
Thank you very much for your replies which are extremely helpful. I am going to test these solutions and revert back.  -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T3107cd3bc536dc63-Ma1895276c47f740f67f4c1e2 Delivery options:

Re: [9fans] A few more questions about sam

2021-08-05 Thread fwrm via 9fans
4) In ed/awk/grep/etc... regexp is used to "select" *the lines containing it* and do stuff, in sam however it's used to describe the shape of string(s) themselves you want to "select" (with x and y commands). It doesn't have the concept of a line. Your selection can be less than a line, or you

Re: [9fans] A few more questions about sam

2021-08-05 Thread umbraticus
> Is there a way to customise the starting layout of sam? I have this patch, which changes the starting geometry of cmd window and opens files fullscreen immediately instead of having to sweep a rect: diff -u /sys/src/cmd/samterm/main.c ./main.c --- /sys/src/cmd/samterm/main.c Thu Apr 30

[9fans] A few more questions about sam

2021-08-05 Thread revcomninos
I am running sam as a standalone on Debian 10: https://9fans.github.io/plan9port/ I have found this version to be stable and would not like to change it. I also like the visual display.  I start up sam from the terminal with a single option: font=/mnt/font/GoMono/14/font sam In this scenario, i.e.