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 c
> 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 10:24:09
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 sp
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 spaces.
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 the
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.