ait.1 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. .TH AIT "1" "March 2024" "ait 1.7" "General Commands Manual\fR
  2. .SH NAME
  3. .B ait
  4. \- small yet mighty GNU Emacs style editor
  5. .SH SYNOPSIS
  6. .B ait
  7. .B [-vh]
  8. [\fI\,file\/\fR [+/-\fI\,number\/\fR] ...]
  9. .br
  10. .SH DESCRIPTION
  11. .B ait
  12. is intended to be small, portable, and powerful Emacs-like text editor. While
  13. those are the top 3 main goals,
  14. .B ait
  15. also is intended to be simple in both implemetation and use, support the most
  16. important GNU Emacs keybindings, support UTF8 and unicode, to not reinvent
  17. the wheel, and to not suck. You will find many differences between GNU Emacs
  18. and
  19. .B ait
  20. as
  21. .B ait
  22. is
  23. .I not
  24. intended to be an Emacs clone. Some of the most prominent differences are:
  25. the lacks of a config, of lisp, of 100% custom window layouts, of major syntax
  26. highlighting, and of modes in general.
  27. .B ait
  28. instead is simple enough that you can change the source to change the
  29. keybindings, uses the existing system as the extension language (see
  30. \fBSHELL COMMANDS\fR), uses a simple static-window system that works for 99% of all editing
  31. purposes, and supports the bare-minimum syntax highlighting (see
  32. \fBSYNTAX HIGHLIGHTING\fR). Think of
  33. .B ait
  34. as a microEMACS implementation of GNU Emacs with concepts from Plan 9's acme
  35. editor.
  36. .TP
  37. The options are as follows:
  38. .TP
  39. \fB+/- number\fR
  40. Go to the line specified by number (do not insert a space between the '+' or '-'
  41. sign and the number). If a negative number is specified, the line number counts
  42. backwards from the end of the file i.e. -1 will be the last line of the file,
  43. -2 will be second last, and so on.
  44. .TP
  45. \fB-v\fR
  46. Print version and exit
  47. .TP
  48. \fB-h\fR
  49. Print help and exit
  50. .TP
  51. .SH POINT & MARK
  52. .B ait
  53. is written using a gap buffer and therefore some of the lingo used to describe
  54. various behaviors come from this. The
  55. .I point
  56. is the location of the cursor in the buffer. The
  57. .I mark
  58. is a point that is set by the user to define either the beginning or end of the
  59. \fIregion\fR.
  60. The region is used for a variety of functions such as cut, copy, and
  61. shell-command. The point and mark are both buffer specific.
  62. There are some note-worthy special cases that may confuse users at first.
  63. Firstly, persistent column. If you haven't explicitly changed the current
  64. column using something fwd-word, back-char, etc.
  65. .B ait
  66. will remember which column you're on. This makes editing things that are
  67. in the same column but seperated by short lines a lot easier. Secondly,
  68. brack-matching is supported for all heterogeneous bracket types (), {}, <>,
  69. and []. It is not supported for homogeneous ones ("", '', ``). You can, however,
  70. still use forward-bracket and backward-bracket to jump to them. Thirdly,
  71. regarding the forward/backward-bracket functions, if there is a mark they will
  72. overshoot to allow you to select the entire enclosed text and its brackets.
  73. For example, if you have the code (+ 1 2) and the point is on ( and you place
  74. a mark there and run forward-bracket, the point will actually go one character
  75. to the right of the), effectively allow you to kill that entire block of code.
  76. If the point were on the ) and you place a mark there and run backward-bracket,
  77. the mark will be moved one character to the right of the ) and then the point
  78. moved to the (. The two previous cases only work when the point is on the
  79. bracket and not next to it like in GNU Emacs.
  80. .SH WINDOWS AND BUFFERS
  81. When a file is loaded into
  82. \fBait\fR, it is stored in a \fIbuffer\fR. This buffer may be displayed on the
  83. screen in more than one \fIwindow\fR. Each window is delineated by a
  84. .I modeline
  85. at the bottom. The modeline contains important information about the buffer
  86. inside the window. The second position in the modeline will contain an "O" if
  87. that buffer is in overwrite mode. If changes are made to a buffer, you will see
  88. an asterisk in the third position of that buffer's window's modeline. If a file
  89. is changed outside
  90. .B ait
  91. and its buffer is about to be changed,
  92. .B ait
  93. prompts if the change should go ahead (y), not go ahead (n) or if the buffer
  94. should be reverted (r) to the latest file on disk. The default buffer is called
  95. .I *scratch*
  96. and is not saved when you close the program. In the modeline you will also find
  97. the buffer name. This name is usually the same as the file's name unless there
  98. is another buffer loaded with the same file name. In that case, the buffer name
  99. will contain the directory name in the name i.e. dir/foo.txt. The file name
  100. usually contains the entire path to that file and is seen when you save the
  101. buffer. Next in the modeline is the row and column inside of parenthesis.
  102. Lastly, there is the percentage of the buffer you're viewing. If you're at the
  103. top and you can't page up anymore, you'll see TOP. If you can't page down
  104. anymore you'll see BOT. Otherwise, you'll see the percent.
  105. Unlike GNU Emacs,
  106. .B ait
  107. doesn't allow the user to make endless window configurations. There are only 8
  108. supported window modes: one, horizontal, vertical, triple horizontal, triple
  109. vertical, Fibonacci right, Fibonacci left, and quad. Horizontal and vertical
  110. mode are 2 window splits in the respective direction. The triple modes are
  111. the same as the previous just with 3 windows. Fibonacci modes are modes that
  112. have 2 small windows that make up the height of the third large window. It is
  113. called this because it resembles the first 3 squares in the Fibonacci sequence.
  114. Lastly, quad mode is a 4 window mode with 4 windows, one in each quadrant. Also
  115. unlike GNU Emacs, close-window doesn't exist. You can only change window modes
  116. and so the keybinding C-x 0 will take you back to one window mode. When you
  117. change modes
  118. .B ait
  119. will attempt to fill the windows by following the buffer trail (explained in the
  120. next parapgraph). This isn't always right but is extremely handy.
  121. The order of buffers and windows is not handled by any array or list. They are
  122. handled by pointers that point to other pointers, thus creating a "trail" of
  123. sorts. The buffer trail is the path to the order of the open buffers i.e.
  124. current-buffer(foo.txt->b_next(bar.txt)->b_next(README)->b_next(NULL). The
  125. list must always end with NULL.
  126. .SH MSGLINE
  127. Under all windows and modlines is the prompt area, namely, the \fImsgline\fR.
  128. This is where all non-editing input is handled. Unlike GNU Emacs, the msgline
  129. is not a buffer but a special place for messages and prompts. In most prompts,
  130. most of the basic movement keybindings are usable: backward-char, forward-char,
  131. back-word, fwd-word, delete, backspace, kill-line, beginning-of-line,
  132. end-of-line, back-word-delete, fwd-word-delete, and insert-control-char.
  133. .SH SPECIAL CHARACTERS
  134. There are some unique special things that you may seen while using
  135. .B ait
  136. that may spark a question. First, a tab character is denoted by a 4 space
  137. line yellow UTF-8 character. This makes it easy to see whether spaces or actual
  138. tabs are being used. This character doesn't show correctly when you're in the tty.
  139. Second, if control characters make it into the file they
  140. are denoted, as GNU Emacs does, by a ^ followed by the letter that corresponds
  141. to that control character in red foreground cololr. For example, the form feed
  142. control character (ASCII 0x0C) would show up as ^L because 0x4C is an L in
  143. ASCII. Third, trailing whitespace is denoted by a red background color but only
  144. shows when you are not at the end of the trailing space. Fourth, completely
  145. empty lines that contain no buffer data are denoted by a cyan tilde (~)
  146. similarly to how
  147. .B vi(1)
  148. does it. This makes it easy to see when you're at the bottom of the file
  149. visually. Alternatively one could use the modeline BOT string to obtain
  150. the same conclusion.
  151. .SH KEYBINDINGS
  152. Keybindings in
  153. .B ait
  154. are written similarly to other Emacs clones. "C" means control and "M" means
  155. meta. Therefore, "C-x" means control plus the x key and "M-x" means meta/alt plus
  156. the x key. Since
  157. .B ait
  158. is usable on pretty much any terminal, it was selected to use esc instead of "M" to
  159. describe meta. Therefore, "esc x" means the same as "M-x". The below list has
  160. the keybinding in bold, followed by the common name for the function that the
  161. keybinding runs, followed by a description on how that function works.
  162. .TP
  163. \fBC-a\fR
  164. beginning-of-line, move the point to the beginning of the line.
  165. .TP
  166. \fBC-b / left\fR
  167. backward-char, move the point to the left by 1 character.
  168. .TP
  169. \fBC-d / delete\fR
  170. delete, delete the character that the point is currently pointing to.
  171. .TP
  172. \fBC-e\fR
  173. end-of-line, move the point to the end of the line.
  174. .TP
  175. \fBC-f / right\fR
  176. foward-char, move the point to the right by 1 character.
  177. .TP
  178. \fBC-h / backspace\fR
  179. backspace, delete the character directly to the left of the point.
  180. .TP
  181. \fBC-i\fR
  182. indent, insert 2 spaces.
  183. .TP
  184. \fBC-k\fR
  185. kill-to-eol, cut from the point to the end of the line.
  186. .TP
  187. \fBC-l\fR
  188. recenter, jump the page from top, middle, and end of the window following this
  189. cycle: middle, top, end, repeat.
  190. .TP
  191. \fBC-x u / C-/\fR
  192. undo, unlimited linear undo. See
  193. .B UNDO & REDO
  194. for more information.
  195. .TP
  196. \fBC-n / down\fR
  197. next-line, move the point down by 1 line.
  198. .TP
  199. \fBC-m / enter\fR
  200. newline, insert a newline character at the point.
  201. .TP
  202. \fBC-p / up\fR
  203. previous-line, moved the point up by 1 line.
  204. \fBC-q\fR
  205. insert-control-char, prompts you in insert a control character. If you insert an invalid one, it will put '^@' (string terminator)
  206. .TP
  207. \fBC-r\fR
  208. reverse-isearch, prompt the user for a search query and search start at the
  209. point going up. See the section
  210. .B ISEARCH
  211. for more information.
  212. .TP
  213. \fBC-o\fR
  214. newline-below, insert a newline character at the end of the current line.
  215. .TP
  216. \fBC-s\fR
  217. reverse-isearch, prompt the user for a search query and search start at the
  218. point going down. See the section
  219. .B ISEARCH
  220. for more information.
  221. .TP
  222. \fBC-t\fR
  223. transpose, flip the position of the character at the point with the character
  224. directly to the left of it.
  225. .TP
  226. \fBC-u\fR
  227. universal-argument, at the moment all this does is run certain commands
  228. 4^(number of C-u presses) times. In Emacs, universal-argument does much more
  229. and
  230. .B ait
  231. does have a framework to do more with it but isn't fully implemented due to lack
  232. of necessity.
  233. .TP
  234. \fBC-v / pagedown\fR
  235. forward-page, move the page by one full page down.
  236. .TP
  237. \fBC-w / esc k\fR
  238. kill-region, cut the region. See
  239. .B POINT AND MARK
  240. for more information.
  241. .TP
  242. \fBC-y\fR
  243. yank, insert the scrap at the point. See
  244. .B POINT AND MARK
  245. for more information.
  246. .TP
  247. \fBC-z\fR
  248. suspend, suspend
  249. .B ait
  250. .
  251. .TP
  252. \fBC-space / esc @\fR
  253. set-mark, set the point as the current mark.
  254. .TP
  255. \fBC-g / C-x C-g\fR
  256. remove-mark, remove the current mark. C-g is also used to quit any command
  257. in
  258. .B ait
  259. .
  260. .TP
  261. \fBC-x 0 / C-x 1\fR
  262. delete-other-window, return to one window mode.
  263. .TP
  264. \fBC-x 2\fR
  265. split-window, split into horizontal window mode.
  266. .TP
  267. \fBC-x 3\fR
  268. chop-window, split into vertical window mode.
  269. .TP
  270. \fBC-x 4\fR
  271. tri-split, split into triple horizontal window mode.
  272. .TP
  273. \fBC-x 5\fR
  274. tri-chop, split into triple vertical window mode.
  275. .TP
  276. \fBC-x 6\fR
  277. fib-right, split into Fibonacci right mode.
  278. .TP
  279. \fBC-x 7\fR
  280. fib-left, split into Fibonacci left mode.
  281. .TP
  282. \fBC-x 8\fR
  283. quad-window, split into quad window mode.
  284. .TP
  285. \fBC-x o\fR
  286. other-window, jump cursor to the next window in the window trail. See
  287. .B WINDOWS AND BUFFERS
  288. for more information.
  289. .TP
  290. \fBC-x =\fR
  291. cursor-position, print information on current cusor location to the msgline.
  292. .TP
  293. \fBC-x i\fR
  294. insert-file, insert a file into the current buffer.
  295. .TP
  296. \fBC-x k\fR
  297. kill-buffer, kill the current buffer. If unsaved, prompt to save.
  298. .TP
  299. \fBC-x C-n / C-x n\fR
  300. next-buffer, switch to the next buffer in the buffer trail. See
  301. .B WINDOWS AND BUFFERS
  302. for more information.
  303. .TP
  304. \fBC-x l\fR
  305. last-buffer, switch to the last buffer you previous had as the current.
  306. .TP
  307. \fBC-x b\fR
  308. switch-to-buffer, prompt the user to select which buffer they'd like to switch to.
  309. .TP
  310. \fBC-x (\fR
  311. start-kbd-macro, begin a keyboard macro.
  312. .TP
  313. \fBC-x )\fR
  314. end-kbd-macro, end a keyboard macro.
  315. .TP
  316. \fBC-x e\fR
  317. run-kbd-macro, execute a keyboard macro.
  318. .TP
  319. \fBC-x C-f\fR
  320. find-file, prompt the user to select a file to open.
  321. .TP
  322. \fBC-x C-s\fR
  323. save-buffer, save the current buffer to disk.
  324. .TP
  325. \fBC-x C-w\fR
  326. write-file, save the current buffer to a new file.
  327. .TP
  328. \fBC-x C-c\fR
  329. exit, quit
  330. .B ait
  331. .
  332. .TP
  333. \fBC-x C-x\fR
  334. pop-to-mark, jump point to the previous mark point.
  335. .TP
  336. \fBesc 0\fR
  337. numeric-arg-0, see
  338. .B NUMERIC ARGUMENT
  339. for more information.
  340. .TP
  341. \fBesc 1\fR
  342. numeric-arg-1, see
  343. .B NUMERIC ARGUMENT
  344. for more information.
  345. .TP
  346. \fBesc 2\fR
  347. numeric-arg-2, see
  348. .B NUMERIC ARGUMENT
  349. for more information.
  350. .TP
  351. \fBesc 3\fR
  352. numeric-arg-3, see
  353. .B NUMERIC ARGUMENT
  354. for more information.
  355. .TP
  356. \fBesc 4\fR
  357. numeric-arg-4, see
  358. .B NUMERIC ARGUMENT
  359. for more information.
  360. .TP
  361. \fBesc 5\fR
  362. numeric-arg-5, see
  363. .B NUMERIC ARGUMENT
  364. for more information.
  365. .TP
  366. \fBesc 6\fR
  367. numeric-arg-6, see
  368. .B NUMERIC ARGUMENT
  369. for more information.
  370. .TP
  371. \fBesc 7\fR
  372. numeric-arg-7, see
  373. .B NUMERIC ARGUMENT
  374. for more information.
  375. .TP
  376. \fBesc 8\fR
  377. numeric-arg-8, see
  378. .B NUMERIC ARGUMENT
  379. for more information.
  380. .TP
  381. \fBesc 9\fR
  382. numeric-arg-9, see
  383. .B NUMERIC ARGUMENT
  384. for more information.
  385. .TP
  386. \fBesc b\fR
  387. back-word, move point to the left by one word.
  388. .TP
  389. \fBesc bksp\fR
  390. back-word-delete, delete one word to the left.
  391. .TP
  392. \fBesc f\fR
  393. fwd-word, move point to the right by one word.
  394. .TP
  395. \fBesc d\fR
  396. fwd-word-delete, delete one word to the right.
  397. .TP
  398. \fBesc x\fR
  399. execute-shell-cmd, execute a shell command. See
  400. .B SHELL COMMANDS
  401. for more information.
  402. .TP
  403. \fBesc g\fR
  404. goto-line, prompt the user to select which line to jump to.
  405. \fBesc r\fR
  406. jump-to-row, jump to a line on the current page by pressing the
  407. combination of chars displayed on that line.
  408. \fBesc j\fR
  409. jump-word, jump to a word on the current page starting with the input
  410. char by pressing the combination of chars displayed at the start of
  411. that word.
  412. .TP
  413. \fBesc i\fR
  414. indent, insert a tab character at the point.
  415. .TP
  416. \fBesc m\fR
  417. back-to-indentation, jump point to the next non-whitespace character.
  418. .TP
  419. \fBesc n\fR
  420. negate, set the negate flag. This isn't used much and almost no commands use it.
  421. I've found it more valuable to have custom keybindings to run commands in
  422. reverse.
  423. .TP
  424. \fBesc o\fR
  425. open-shell-cmd, execute a shell command to open a new buffer. See
  426. .B SHELL COMMANDS
  427. for more information.
  428. .TP
  429. \fBesc %\fR
  430. query-replace, prompt the user to replace something in the buffer. See
  431. .B QUERY REPLACE
  432. for more information.
  433. .TP
  434. \fBesc v / pageup\fR
  435. backward-page, move the page by one full page up.
  436. .TP
  437. \fBesc w\fR
  438. copy-region, copy the region. See
  439. .B POINT AND MARK
  440. for more information.
  441. .TP
  442. \fBesc < / home\fR
  443. beg-of-buf, set point to the beginning of the buffer.
  444. .TP
  445. \fBesc > / end\fR
  446. end-of-buf, set point to the end of the buffer.
  447. .TP
  448. \fBesc \\\fR
  449. delete-whitespace, delete all whitespace to the rigth and left of the point.
  450. .TP
  451. \fBesc /\fR
  452. redo, redo an undo. You an redo as many undos as there are. See
  453. .B UNDO & REDO
  454. for more information.
  455. .TP
  456. \fBesc t\fR
  457. transpose word, flip the word the point is currently in the the word to the left.
  458. .TP
  459. \fBesc l\fR
  460. lowercase-word, make the next word (starting at the point) lowercase.
  461. .TP
  462. \fBesc c\fR
  463. capitalize-word, capitalize the next word (starting at the point).
  464. .TP
  465. \fBesc u\fR
  466. uppercase-word, make the next word (starting at the point) uppercase.
  467. .TP
  468. \fBesc ;\fR
  469. jump-to-char, prompt the user to select a character to the right of the point
  470. to jump the point to.
  471. .TP
  472. \fBesc :\fR
  473. negated-jump-to-char, prompt the user to select a character to the left of the
  474. point to jump the point to.
  475. .TP
  476. \fBesc z\fR
  477. zap-to-char, delete all characters to the right until the point reaches the
  478. insert character.
  479. .TP
  480. \fBesc Z\fR
  481. negated-zap-to-char, delete all characters to the left until the point reaches the
  482. insert character.
  483. .TP
  484. \fBinsert\fR
  485. toggle-overwrite-mode, toggle between insert and overwrite mode.
  486. .TP
  487. \fBC-M-f\fR
  488. foward-bracket, jump the point to the match of the bracket at the
  489. point going to the right.
  490. .TP
  491. \fBC-M-b\fR
  492. backward-bracket, jump the point to the match of the bracket at the
  493. point going to the left.
  494. .TP
  495. .SH ISEARCH
  496. isearch stands for incremental search and is the normal way to search for
  497. something in a buffer. isearch has two modes: isearch and isearch-reverse.
  498. isearch goes down the buffer and reverse goes up. It is paramount that you
  499. understand how the prompt for isearch works to use it to it's best ability.
  500. While in the isearch function is running, you have a few keybindings at your
  501. disposal other than the normal msgline keybinds:
  502. .TP
  503. \fBesc / C-g\fR
  504. Quit. This will take you back to the original start point.
  505. .TP
  506. \fBC-s\fR
  507. Jump to next match. If in isearch-reverse, switch to isearch.
  508. .TP
  509. \fBC-r\fR
  510. Jump to next match. If in isearch, switch to isearch-reverse.
  511. .TP
  512. \fBenter\fR
  513. Accept match, quit isearch, and stay at that point.
  514. .TP
  515. .PP
  516. Once you've reached a point where there are no more matches, pressing the
  517. respective keybind (C-s in isearch, C-r in isearch-reverse) will continue the
  518. search from the beginning or end of the buffer respectively. Lastly, if you type
  519. an all lowercase query it will search for matches
  520. \fIregardless of case;\fP meaning that it searches with case insensitivity.
  521. If you put any uppercase letter into the query, the search now becomes case
  522. sensitive.
  523. .SH UNDO & REDO
  524. It's not overtly obvious when a undo set happens, the explanation is quick. An
  525. undo set happens whenever you break a chain of similar commands - if you are
  526. typing a big paragraph but don't manually move the cursor, delete
  527. anything, or run any other commands you'll find the undo will remove that entire
  528. paragraph. This is because you haven't broken the chain of commands. A redo
  529. only becomes available once you've undone something.
  530. .SH NUMERICAL ARGUMENT
  531. Numerical argument is a way to run a keybinding many times. It is most useful
  532. when used in combination with keyboard macros but can also be nice when doing
  533. normal editting as well. When you begin entering a numeric argument you'll see
  534. "C-u x", where x is the number you've added, in the msgline. Upon entering the
  535. next number you will find that it doesn't add to the original number but rather
  536. shifts the original number into the next most significant digit. This makes it
  537. very easy to do massive recurring edits.
  538. .SH QUERY REPLACE
  539. The query-replace function is useful to replace multiple occurances of something
  540. with another something. This function is very straightforward on how to use so
  541. an explanation isn't needed. Once in the search, 'y' will accept the replace,
  542. replace the query with the replacement, and move to the next match; 'n' will
  543. skip the current match, '!' will accept all occurances without asking, and 'q'
  544. will quit. You may also use C-g to quit before you get to searching part or
  545. C-g and enter in the searching part. If there are more instances of the query,
  546. you may use 'l' (stands for last) to replace the current result and then quit.
  547. This is useful when you want to just replace a handful but don't want to be
  548. jumped to the next result.
  549. .SH SHELL COMMANDS
  550. One of the most powerful features in
  551. .B ait
  552. is the support to open files using custom commands and running shell commands.
  553. When running a shell command (esc x) there are 2 types: input and replace. Input
  554. happens when you have no region and you want to input the output of a command.
  555. One of the best uses of this is with xclip(1) or pbpaste(1) (on macOS) allowing
  556. you to paste in the editor. Replace happens when there is a region. In a region
  557. command the region is passed into the shell command and the output of that command,
  558. unless empty (just contains a null terminator or newline), is then placed where
  559. the region was. One of the best uses of this is a spell checker.
  560. .B ait
  561. ships with an example script called "spell" that uses this technique, however,
  562. it requires pick(1) and aspell(1) to be installed.
  563. Open command is very straightforward, use anything you want to find the file you
  564. want to open and make a script that returns just the file and path.
  565. .B ait
  566. ships with a few examples of this "ff" (find file) and "gg" (git grep) which
  567. both require pick(1) and git(1) to be installed.
  568. There may, in the future, be a way to have commands that don't effect the buffer
  569. or commands that effect the entire buffer added in later version.
  570. .SH SYNTAX HIGHLIGHTING
  571. .B ait
  572. lacks good syntax highlighting because it's not really needed. However, it is
  573. helpful to have something to help differentiate when something is in a string
  574. or a comment - which is the only syntax highlighting that
  575. .B ait
  576. supports. This feature is file extension dependent and must be added directly
  577. into the source (buffer.c). The structure allows you to specify the file
  578. extension, a single line comment, multi-line comment start (NULL if there
  579. isn't any), multi-line comment end (NULL if there isn't any), if a single
  580. quote is a string, and if a backquote is a string.
  581. .SH BACKUP FILES
  582. Backup files usually end in ~ and are, by default, sent to $HOME/.backups. These
  583. backups contain the entire path with the slashes replaced with exclamation
  584. points i.e. /home/foobar/foo.txt -> !home!foobar!foo.txt. You can optionally
  585. have backup files be put in the directory where that file is located by setting
  586. the BACKUP_DIR definition to NULL.
  587. Backups are created right before the buffer is written to disk. They contain the
  588. file's contents before it is overwritten.
  589. .SH AUTHOR
  590. .B ait
  591. is a fork of an editor called atto. Atto was a fork of an editor called AE.
  592. From Atto's README: "Atto is based on the public domain code of Anthony Howe's
  593. editor (commonly known as Anthony's Editor or AE, [2])..."
  594. That being said, parts of
  595. .B ait
  596. are written by all three of us: Anthony Howe,
  597. Hugh Barney, and Kevin Bloom.
  598. Kevin Bloom is the current maintainer.
  599. .SH KNOWN ISSUES
  600. You may view and track issues here: https://notabug.org/nuclearkev/ait/issues.
  601. UTF-8 and unicode works for the most part but they are seen as "second-class
  602. citizens" due to the fact that most programming and general text editting is
  603. done with ACSII or ISO646-US or whatever. If you view open `docs/UTF-8.txt`
  604. with
  605. .B ait
  606. you'll see that most of it is fine but lines 123-130 are messed up a little.
  607. .SH "REPORTING BUGS"
  608. Report bugs to https://notabug.org/nuclearkev/ait/issues
  609. .SH COPYRIGHT
  610. Public Domain 1991, 1993 by Anthony Howe. No warranty.
  611. Public Domain 2014-2022 by Hugh Barney. No warranty
  612. Copyright \(co 2023-2024 Kevin "The Nuclear" Bloom.
  613. .B ait
  614. comes with ABSOLUTELY NO WARRANTY.
  615. You may redistribute copies of
  616. .B ait
  617. under the terms of the BSD 3-Clause License.
  618. For more information about these matters, see the file named LICENSE.
  619. .SH "SEE ALSO"
  620. .BR mg (1),
  621. .BR emacs (1).