Blame


1 2c31ce4d 2019-10-26 op # acmetag
2 2c31ce4d 2019-10-26 op
3 8c9a7c8d 2020-08-02 op [![GoDoc](https://godoc.org/git.omarpolo.com/acmetag?status.svg)](https://godoc.org/git.omarpolo.com/acmetag)
4 8c9a7c8d 2020-08-02 op
5 a2964aa4 2020-06-10 op go get git.omarpolo.com/acmetag
6 2c31ce4d 2019-10-26 op
7 4f7fe71a 2020-08-02 op `acmetag` is a tool to programmatically interact with `acme(1)` tag
8 4f7fe71a 2020-08-02 op bar. It provides two flag:
9 a2964aa4 2020-06-10 op
10 2c31ce4d 2019-10-26 op * `-g` prints the tag content (mnemonic: get)
11 2c31ce4d 2019-10-26 op * `-c` clears the tag content (mnemonic: clear)
12 2c31ce4d 2019-10-26 op
13 4f7fe71a 2020-08-02 op Any other argument (if passed) will be appended to the tag bar.
14 2c31ce4d 2019-10-26 op
15 4f7fe71a 2020-08-02 op Of course, you can combine the flags:
16 2c31ce4d 2019-10-26 op
17 2c31ce4d 2019-10-26 op acmetag -g -c fmt
18 2c31ce4d 2019-10-26 op
19 2c31ce4d 2019-10-26 op will first print the current tag content, than clears it and then append
20 2c31ce4d 2019-10-26 op `fmt`.
21 2c31ce4d 2019-10-26 op
22 a2964aa4 2020-06-10 op
23 a2964aa4 2020-06-10 op ### Limitations
24 a2964aa4 2020-06-10 op
25 a2964aa4 2020-06-10 op * It cannot change the text *before* the `|` character.
26 a2964aa4 2020-06-10 op
27 a2964aa4 2020-06-10 op
28 a2964aa4 2020-06-10 op ### Tips
29 a2964aa4 2020-06-10 op
30 2c31ce4d 2019-10-26 op I'm using `acmetag` with [`autoacme`][autoacme] to automatically set
31 2c31ce4d 2019-10-26 op the tag content based on file type.
32 2c31ce4d 2019-10-26 op
33 2c31ce4d 2019-10-26 op [autoacme]: https://github.com/mkhl/cmd/tree/master/acme/autoacme