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

Re: [9fans] [PATCH] Spaceindent mode for acme

2021-08-05 Thread Rodrigo G . López
hi, 9front's had this for a long time (last time i used acme it already did, back in 2017). maybe you could try to import those changes instead of rolling your own? best, -rodri On Thu, Aug 5, 2021 at 6:59 PM binarycat wrote: > > I do prefer tabs over spaces, but sometimes you have to use

[9fans] [PATCH] Spaceindent mode for acme

2021-08-05 Thread binarycat
I do prefer tabs over spaces, but sometimes you have to use spaces. For example, zig doesn't even allow the tab charachter in its source code. So, I put together a simple patch that adds a command `Spaceindent`. This command works similar to `Indent`, but changing whether to insert tabs or

[9fans] A learners sam cheat sheet

2021-08-05 Thread revcomninos
Below is my learners cheat sheet of sam commands which I am enclosing should find it helpful. I welcome any suggestions and/or corrections. These have been put together mostly from the standard resources, but there are gaps in my knowledge.  $ - end of line/file $-/vi/ -- search from end of

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