ait.1 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. .TH AIT "1" "October 2023" "ait 1.5" "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, column-memory. 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, and fwd-word-delete.
  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 red UTF-8 character. This makes it easy to see whether spaces or actual
  138. tabs are being used. Second, if control characters make it into the file they
  139. are denoted, as GNU Emacs does, by a ^ followed by the letter that corresponds
  140. to that control character in red foreground cololr. For example, the form feed
  141. control character (ASCII 0x0C) would show up as ^L because 0x4C is an L in
  142. ASCII. Third, trailing whitespace is denoted by a red background color but only
  143. shows when you are not at the end of the trailing space. Fourth, completely
  144. empty lines that contain no buffer data are denoted by a cyan tilde (~)
  145. similarly to how
  146. .B vi(1)
  147. does it. This makes it easy to see when you're at the bottom of the file
  148. visually. Alternatively one could use the modeline BOT string to obtain
  149. the same conclusion.
  150. .SH KEYBINDINGS
  151. Keybindings in
  152. .B ait
  153. are written similarly to other Emacs clones. "C" means control and "M" means
  154. meta. Therefore, "C-x" means control plus the x key and "M-x" means meta/alt plus
  155. the x key. Since
  156. .B ait
  157. is usable on pretty much any terminal, it was selected to use esc instead of "M" to
  158. describe meta. Therefore, "esc x" means the same as "M-x". The below list has
  159. the keybinding in bold, followed by the common name for the function that the
  160. keybinding runs, followed by a description on how that function works.
  161. .TP
  162. \fBC-a\fR
  163. beginning-of-line, move the point to the beginning of the line.
  164. .TP
  165. \fBC-b / left\fR
  166. backward-char, move the point to the left by 1 character.
  167. .TP
  168. \fBC-d / delete\fR
  169. delete, delete the character that the point is currently pointing to.
  170. .TP
  171. \fBC-e\fR
  172. end-of-line, move the point to the end of the line.
  173. .TP
  174. \fBC-f / right\fR
  175. foward-char, move the point to the right by 1 character.
  176. .TP
  177. \fBC-h / backspace\fR
  178. backspace, delete the character directly to the left of the point.
  179. .TP
  180. \fBC-i\fR
  181. indent, insert 2 spaces.
  182. .TP
  183. \fBC-k\fR
  184. kill-to-eol, cut from the point to the end of the line.
  185. .TP
  186. \fBC-l\fR
  187. recenter, jump the page from top, middle, and end of the window following this
  188. cycle: middle, top, end, repeat.
  189. .TP
  190. \fBC-x u / C-/\fR
  191. undo, unlimited linear undo. See
  192. .B UNDO & REDO
  193. for more information.
  194. .TP
  195. \fBC-n / down\fR
  196. next-line, move the point down by 1 line.
  197. .TP
  198. \fBC-m / enter\fR
  199. newline, insert a newline character at the point.
  200. .TP
  201. \fBC-p / up\fR
  202. previous-line, moved the point up by 1 line.
  203. .TP
  204. \fBC-r\fR
  205. reverse-isearch, prompt the user for a search query and search start at the
  206. point going up. See the section
  207. .B ISEARCH
  208. for more information.
  209. .TP
  210. \fBC-o\fR
  211. newline-below, insert a newline character at the end of the current line.
  212. .TP
  213. \fBC-s\fR
  214. reverse-isearch, prompt the user for a search query and search start at the
  215. point going down. See the section
  216. .B ISEARCH
  217. for more information.
  218. .TP
  219. \fBC-t\fR
  220. transpose, flip the position of the character at the point with the character
  221. directly to the left of it.
  222. .TP
  223. \fBC-u\fR
  224. universal-argument, at the moment all this does is run certain commands
  225. 4^(number of C-u presses) times. In Emacs, universal-argument does much more
  226. and
  227. .B ait
  228. does have a framework to do more with it but isn't fully implemented due to lack
  229. of necessity.
  230. .TP
  231. \fBC-v / pagedown\fR
  232. forward-page, move the page by one full page down.
  233. .TP
  234. \fBC-w / esc k\fR
  235. kill-region, cut the region. See
  236. .B POINT AND MARK
  237. for more information.
  238. .TP
  239. \fBC-y\fR
  240. yank, insert the scrap at the point. See
  241. .B POINT AND MARK
  242. for more information.
  243. .TP
  244. \fBC-z\fR
  245. suspend, suspend
  246. .B ait
  247. .
  248. .TP
  249. \fBC-space / esc @\fR
  250. set-mark, set the point as the current mark.
  251. .TP
  252. \fBC-g / C-x C-g\fR
  253. remove-mark, remove the current mark. C-g is also used to quit any command
  254. in
  255. .B ait
  256. .
  257. .TP
  258. \fBC-x 0 / C-x 1\fR
  259. delete-other-window, return to one window mode.
  260. .TP
  261. \fBC-x 2\fR
  262. split-window, split into horizontal window mode.
  263. .TP
  264. \fBC-x 3\fR
  265. chop-window, split into vertical window mode.
  266. .TP
  267. \fBC-x 4\fR
  268. tri-split, split into triple horizontal window mode.
  269. .TP
  270. \fBC-x 5\fR
  271. tri-chop, split into triple vertical window mode.
  272. .TP
  273. \fBC-x 6\fR
  274. fib-right, split into Fibonacci right mode.
  275. .TP
  276. \fBC-x 7\fR
  277. fib-left, split into Fibonacci left mode.
  278. .TP
  279. \fBC-x 8\fR
  280. quad-window, split into quad window mode.
  281. .TP
  282. \fBC-x o\fR
  283. other-window, jump cursor to the next window in the window trail. See
  284. .B WINDOWS AND BUFFERS
  285. for more information.
  286. .TP
  287. \fBC-x =\fR
  288. cursor-position, print information on current cusor location to the msgline.
  289. .TP
  290. \fBC-x i\fR
  291. insert-file, insert a file into the current buffer.
  292. .TP
  293. \fBC-x k\fR
  294. kill-buffer, kill the current buffer. If unsaved, prompt to save.
  295. .TP
  296. \fBC-x C-n / C-x n\fR
  297. next-buffer, switch to the next buffer in the buffer trail. See
  298. .B WINDOWS AND BUFFERS
  299. for more information.
  300. .TP
  301. \fBC-x l\fR
  302. last-buffer, switch to the last buffer you previous had as the current.
  303. .TP
  304. \fBC-x b\fR
  305. switch-to-buffer, prompt the user to select which buffer they'd like to switch to.
  306. .TP
  307. \fBC-x (\fR
  308. start-kbd-macro, begin a keyboard macro.
  309. .TP
  310. \fBC-x )\fR
  311. end-kbd-macro, end a keyboard macro.
  312. .TP
  313. \fBC-x e\fR
  314. run-kbd-macro, execute a keyboard macro.
  315. .TP
  316. \fBC-x C-f\fR
  317. find-file, prompt the user to select a file to open.
  318. .TP
  319. \fBC-x C-s\fR
  320. save-buffer, save the current buffer to disk.
  321. .TP
  322. \fBC-x C-w\fR
  323. write-file, save the current buffer to a new file.
  324. .TP
  325. \fBC-x C-c\fR
  326. exit, quit
  327. .B ait
  328. .
  329. .TP
  330. \fBC-x C-x\fR
  331. pop-to-mark, jump point to the previous mark point.
  332. .TP
  333. \fBesc 0\fR
  334. numeric-arg-0, see
  335. .B NUMERIC ARGUMENT
  336. for more information.
  337. .TP
  338. \fBesc 1\fR
  339. numeric-arg-1, see
  340. .B NUMERIC ARGUMENT
  341. for more information.
  342. .TP
  343. \fBesc 2\fR
  344. numeric-arg-2, see
  345. .B NUMERIC ARGUMENT
  346. for more information.
  347. .TP
  348. \fBesc 3\fR
  349. numeric-arg-3, see
  350. .B NUMERIC ARGUMENT
  351. for more information.
  352. .TP
  353. \fBesc 4\fR
  354. numeric-arg-4, see
  355. .B NUMERIC ARGUMENT
  356. for more information.
  357. .TP
  358. \fBesc 5\fR
  359. numeric-arg-5, see
  360. .B NUMERIC ARGUMENT
  361. for more information.
  362. .TP
  363. \fBesc 6\fR
  364. numeric-arg-6, see
  365. .B NUMERIC ARGUMENT
  366. for more information.
  367. .TP
  368. \fBesc 7\fR
  369. numeric-arg-7, see
  370. .B NUMERIC ARGUMENT
  371. for more information.
  372. .TP
  373. \fBesc 8\fR
  374. numeric-arg-8, see
  375. .B NUMERIC ARGUMENT
  376. for more information.
  377. .TP
  378. \fBesc 9\fR
  379. numeric-arg-9, see
  380. .B NUMERIC ARGUMENT
  381. for more information.
  382. .TP
  383. \fBesc b\fR
  384. back-word, move point to the left by one word.
  385. .TP
  386. \fBesc bksp\fR
  387. back-word-delete, delete one word to the left.
  388. .TP
  389. \fBesc f\fR
  390. fwd-word, move point to the right by one word.
  391. .TP
  392. \fBesc d\fR
  393. fwd-word-delete, delete one word to the right.
  394. .TP
  395. \fBesc x\fR
  396. execute-shell-cmd, execute a shell command. See
  397. .B SHELL COMMANDS
  398. for more information.
  399. .TP
  400. \fBesc g\fR
  401. gotoline, prompt the user to select which line to jump to.
  402. .TP
  403. \fBesc i\fR
  404. indent, insert a tab character at the point.
  405. .TP
  406. \fBesc m\fR
  407. back-to-indentation, jump point to the next non-whitespace character.
  408. .TP
  409. \fBesc n\fR
  410. negate, set the negate flag. This isn't used much and almost no commands use it.
  411. I've found it more valuable to have custom keybindings to run commands in
  412. reverse.
  413. .TP
  414. \fBesc o\fR
  415. open-shell-cmd, execute a shell command to open a new buffer. See
  416. .B SHELL COMMANDS
  417. for more information.
  418. .TP
  419. \fBesc %\fR
  420. query-replace, prompt the user to replace something in the buffer. See
  421. .B QUERY REPLACE
  422. for more information.
  423. .TP
  424. \fBesc v / pageup\fR
  425. backward-page, move the page by one full page up.
  426. .TP
  427. \fBesc w\fR
  428. copy-region, copy the region. See
  429. .B POINT AND MARK
  430. for more information.
  431. .TP
  432. \fBesc < / home\fR
  433. beg-of-buf, set point to the beginning of the buffer.
  434. .TP
  435. \fBesc > / end\fR
  436. end-of-buf, set point to the end of the buffer.
  437. .TP
  438. \fBesc \\\fR
  439. delete-whitespace, delete all whitespace to the rigth and left of the point.
  440. .TP
  441. \fBesc /\fR
  442. redo, redo an undo. You an redo as many undos as there are. See
  443. .B UNDO & REDO
  444. for more information.
  445. .TP
  446. \fBesc t\fR
  447. transpose word, flip the word the point is currently in the the word to the left.
  448. .TP
  449. \fBesc l\fR
  450. lowercase-word, make the next word (starting at the point) lowercase.
  451. .TP
  452. \fBesc c\fR
  453. capitalize-word, capitalize the next word (starting at the point).
  454. .TP
  455. \fBesc u\fR
  456. uppercase-word, make the next word (starting at the point) uppercase.
  457. .TP
  458. \fBesc ;\fR
  459. jump-to-char, prompt the user to select a character to the right of the point
  460. to jump the point to.
  461. .TP
  462. \fBesc :\fR
  463. negated-jump-to-char, prompt the user to select a character to the left of the
  464. point to jump the point to.
  465. .TP
  466. \fBesc z\fR
  467. zap-to-char, delete all characters to the right until the point reaches the
  468. insert character.
  469. .TP
  470. \fBesc Z\fR
  471. negated-zap-to-char, delete all characters to the left until the point reaches the
  472. insert character.
  473. .TP
  474. \fBinsert\fR
  475. toggle-overwrite-mode, toggle between insert and overwrite mode.
  476. .TP
  477. \fBC-M-f\fR
  478. foward-bracket, jump the point to the match of the bracket at the
  479. point going to the right.
  480. .TP
  481. \fBC-M-b\fR
  482. backward-bracket, jump the point to the match of the bracket at the
  483. point going to the left.
  484. .TP
  485. .SH ISEARCH
  486. isearch stands for incremental search and is the normal way to search for
  487. something in a buffer. isearch has two modes: isearch and isearch-reverse.
  488. isearch goes down the buffer and reverse goes up. It is paramount that you
  489. understand how the prompt for isearch works to use it to it's best ability.
  490. While in the isearch function is running, you have a few keybindings at your
  491. disposal other than the normal msgline keybinds:
  492. .TP
  493. \fBesc / C-g\fR
  494. Quit. This will take you back to the original start point.
  495. .TP
  496. \fBC-s\fR
  497. Jump to next match. If in isearch-reverse, switch to isearch.
  498. .TP
  499. \fBC-r\fR
  500. Jump to next match. If in isearch, switch to isearch-reverse.
  501. .TP
  502. \fBenter\fR
  503. Accept match, quit isearch, and stay at that point.
  504. .TP
  505. .PP
  506. Once you've reached a point where there are no more matches, pressing the
  507. respective keybind (C-s in isearch, C-r in isearch-reverse) will continue the
  508. search from the beginning or end of the buffer respectively. Lastly, if you type
  509. an all lowercase query it will search for matches
  510. \fIregardless of case;\fP meaning that it searches with case insensitivity.
  511. If you put any uppercase letter into the query, the search now becomes case
  512. sensitive.
  513. .SH UNDO & REDO
  514. It's not overtly obvious when a undo set happens, the explanation is quick. An
  515. undo set happens whenever you break a chain of similar commands - if you are
  516. typing a big paragraph but don't manually move the cursor, delete
  517. anything, or run any other commands you'll find the undo will remove that entire
  518. paragraph. This is because you haven't broken the chain of commands. A redo
  519. only becomes available once you've undone something.
  520. .SH NUMERICAL ARGUMENT
  521. Numerical argument is a way to run a keybinding many times. It is most useful
  522. when used in combination with keyboard macros but can also be nice when doing
  523. normal editting as well. When you begin entering a numeric argument you'll see
  524. "C-u x", where x is the number you've added, in the msgline. Upon entering the
  525. next number you will find that it doesn't add to the original number but rather
  526. shifts the original number into the next most significant digit. This makes it
  527. very easy to do massive recurring edits.
  528. .SH QUERY REPLACE
  529. The query-replace function is useful to replace multiple occurances of something
  530. with another something. This function is very straightforward on how to use so
  531. an explanation isn't needed. Once in the search, 'y' will accept the replace,
  532. replace the query with the replacement, and move to the next match; 'n' will
  533. skip the current match, '!' will accept all occurances without asking, and 'q'
  534. will quit. You may also use C-g to quit before you get to searching part or
  535. C-g and enter in the searching part.
  536. .SH SHELL COMMANDS
  537. One of the most powerful features in
  538. .B ait
  539. is the support to open files using custom commands and running shell commands.
  540. When running a shell command (esc x) there are 2 types: input and replace. Input
  541. happens when you have no region and you want to input the output of a command.
  542. One of the best uses of this is with xclip(1) or pbpaste(1) (on macOS) allowing
  543. you to paste in the editor. Replace happens when there is a region. In a region
  544. command the region is passed into the shell command and the output of that command,
  545. unless empty (just contains a null terminator or newline), is then placed where
  546. the region was. One of the best uses of this is a spell checker.
  547. .B ait
  548. ships with an example script called "spell" that uses this technique, however,
  549. it requires pick(1) and aspell(1) to be installed.
  550. Open command is very straightforward, use anything you want to find the file you
  551. want to open and make a script that returns just the file and path.
  552. .B ait
  553. ships with a few examples of this "ff" (find file) and "gg" (git grep) which
  554. both require pick(1) and git(1) to be installed.
  555. There may, in the future, be a way to have commands that don't effect the buffer
  556. or commands that effect the entire buffer added in later version.
  557. .SH SYNTAX HIGHLIGHTING
  558. .B ait
  559. lacks good syntax highlighting because it's not really needed. However, it is
  560. helpful to have something to help differentiate when something is in a string
  561. or a comment - which is the only syntax highlighting that
  562. .B ait
  563. supports. This feature is file extension dependent and must be added directly
  564. into the source (buffer.c). The structure allows you to specify the file
  565. extension, a single line comment, multi-line comment start (NULL if there
  566. isn't any), multi-line comment end (NULL if there isn't any), if a single
  567. quote is a string, and if a backquote is a string.
  568. .SH BACKUP FILES
  569. Backup files usually end in ~ and are, by default, sent to $HOME/.backups. These
  570. backups contain the entire path with the slashes replaced with exclamation
  571. points i.e. /home/foobar/foo.txt -> !home!foobar!foo.txt. You can optionally
  572. have backup files be put in the directory where that file is located by setting
  573. the BACKUP_DIR definition to NULL.
  574. Backups are created right before the buffer is written to disk. They contain the
  575. file's contents before it is overwritten.
  576. .SH AUTHOR
  577. .B ait
  578. is a fork of an editor called atto. Atto was a fork of an editor called AE.
  579. From Atto's README: "Atto is based on the public domain code of Anthony Howe's
  580. editor (commonly known as Anthony's Editor or AE, [2])..."
  581. That being said, parts of
  582. .B ait
  583. are written by all three of us: Anthony Howe,
  584. Hugh Barney, and Kevin Bloom.
  585. Kevin Bloom is the current maintainer.
  586. .SH KNOWN ISSUES
  587. You may view and track issues here: https://notabug.org/nuclearkev/ait/issues.
  588. UTF-8 and unicode works for the most part but they are seen as "second-class
  589. citizens" due to the fact that most programming and general text editting is
  590. done with ACSII or ISO646-US or whatever. If you view open `docs/UTF-8.txt`
  591. with
  592. .B ait
  593. you'll see that most of it is fine but lines 123-130 are messed up a little.
  594. .SH "REPORTING BUGS"
  595. Report bugs to https://notabug.org/nuclearkev/ait/issues
  596. .SH COPYRIGHT
  597. Public Domain 1991, 1993 by Anthony Howe. No warranty.
  598. Public Domain 2014-2022 by Hugh Barney. No warranty
  599. Copyright \(co 2023 Kevin "The Nuclear" Bloom.
  600. .B ait
  601. comes with ABSOLUTELY NO WARRANTY.
  602. You may redistribute copies of
  603. .B ait
  604. under the terms of the BSD 3-Clause License.
  605. For more information about these matters, see the file named LICENSE.
  606. .SH "SEE ALSO"
  607. .BR mg (1),
  608. .BR emacs (1).