echo nex/in/m15o/notes/acme.xtw | nc nightfall.city 1900 | less

NOTES USING ACME

acme is an editor created by Rob Pike as part of the Plan9 operating

system. It's often referred to as an "Integrating" Development

Environment (as opposed to an Integrated Development Environment). It's

mostly due to the way it leverages the operating system to provide all

its functionalities. The following example make use of custom scripts.

CREATE A NEW FILE

New myfile.txt

EDIT AN EXISTING FILE

myfile.txt

Right click on the name above

Note: can also change the path in the tag and hit Get.

AUTOCOMPLETE FILE NAME

ctrl-f prefix

Start typing the prefix, then hit ctrl-f to have acme autocomplete.

ALTERNATE TO MONOSPACE

Font

AUTO INDENT LINES

Indent ON

EXECUTING COMMANDS

wc just executes the wc command, doesn't pipe anything to it.

|wc pipes the selection into wc and replaces the selection with the results.

>wc pipes the selection into wc and outputs the result in the error buffer.

SEARCH FOR FILE CONTENT IN DIRECTORY

g substr

substr can be any substring in the name of the document.

Right click on the file in the list of suggestion to open it.

PLUMBER

plumber # this starts the plumber daemon
plumber https://midnight.pub

EDIT FILES FROM TERMINAL

Use the built-in scripts B and E

B myfile.txt # open myfile.txt on acme
E # Same but returns to calling process only after editing

Note: plumber daemon needs to be running for these scripts to work.

Useful to do EDITOR=E