Commit Graph

409 Commits

Author SHA1 Message Date
K. Lange
4be0d6cafb Use #000000 for terminal black color 2018-08-20 21:44:39 +09:00
K. Lange
888e6734b0 [bim] Better handling for erroneous character widths 2018-08-20 21:38:48 +09:00
K. Lange
9d058df17b [bim] Cleanup commandline messages 2018-08-20 13:43:18 +09:00
K. Lange
dc793bff77 [bim] Fix deleting lines at end of buffer causing crash / misaligned pointer 2018-08-20 13:34:00 +09:00
K. Lange
7d9978799d [bim] Set title in VTE 2018-08-20 13:23:08 +09:00
K. Lange
cffdfac0b0 [bim] Automatically figure out tabs vs. spaces, naively 2018-08-20 13:09:31 +09:00
K. Lange
cc07251802 [bim] Enable indent by default 2018-08-20 13:05:19 +09:00
K. Lange
cf21613df0 [bim] Fix type of some vars used for bim_getch 2018-08-20 12:58:49 +09:00
K. Lange
9435550e18 [bim] Handle ^Z suspend (under Linux) 2018-08-20 11:25:39 +09:00
K. Lange
9ecaca151f [bim] Add some C++ keywords 2018-08-20 10:42:39 +09:00
K. Lange
411ccf3794 [bim] Use C hilighting for C++ until we write a dedicated one 2018-08-20 10:39:13 +09:00
K. Lange
98a1de26c1 [bim] Fix some read-only support stuff 2018-08-20 10:35:36 +09:00
K. Lange
d049085a3b [bim] Add rudimentary indent adjustment 2018-08-20 10:30:07 +09:00
K. Lange
312bf70943 [bim] Add rudimentary automatic indenting 2018-08-20 10:03:22 +09:00
K. Lange
567546a2ce [bim] Syntax hilighting for Make 2018-08-20 09:25:11 +09:00
K. Lange
5bdaa7b77b [bim] Copy UTF8 decoder into bim so it is single-file 2018-08-19 21:07:56 +09:00
K. Lange
fa4b4daca8 [bim] Fix up trying to parse syntax at load time 2018-08-19 21:07:56 +09:00
K. Lange
ca08d442d6 Replace utf8decode with our own thing 2018-08-19 21:07:52 +09:00
K. Lange
dd973824c0 [bim] Invert #ifdef __linux__ to match #ifdef __toaru__ earlier 2018-08-19 19:49:13 +09:00
K. Lange
2688a4ca8f [bim] Support reading data from stdin 2018-08-19 19:29:00 +09:00
K. Lange
b3f72db522 [bim] Accept shift-D for delete lines 2018-08-19 18:01:24 +09:00
K. Lange
6f9136b672 [bim] Show yank count in status 2018-08-19 17:53:36 +09:00
K. Lange
11b99652c5 [bim] Line yank/paste 2018-08-19 17:10:22 +09:00
K. Lange
2d3cd5fe1c [bim] Line selection mode 2018-08-19 16:35:16 +09:00
K. Lange
a1f52c1679 [bim] minor cleanup 2018-08-19 15:33:20 +09:00
K. Lange
8e4292c6d6 [bim] Fix printing some escape bytes 2018-08-18 21:07:46 +09:00
K. Lange
53a64a12dc [bim] fix bad if 2018-08-18 20:16:23 +09:00
K. Lange
58dca9e8d7 [bim] read-only buffers 2018-08-18 20:09:27 +09:00
K. Lange
9a9ff0f32e Oops, broke ; in escapes with that 2018-08-18 19:59:19 +09:00
K. Lange
3c545f00ed [bim] Fix some insert-mode escape handling 2018-08-18 19:43:15 +09:00
K. Lange
482fe9280b [bim] Ctrl-Left, Ctrl-Right 2018-08-18 18:23:31 +09:00
K. Lange
3c7d79b695 Restructure input escape processing 2018-08-18 17:33:41 +09:00
K. Lange
99ef3cb80f [bim] New command stuff and help 2018-08-18 15:34:00 +09:00
K. Lange
0b8fda0a20 [bim] 16-color support in theming 2018-08-18 15:20:37 +09:00
K. Lange
5521676f4f [bim] Support for color themes, solarized-dark, citylights 2018-08-18 13:23:12 +09:00
K. Lange
b70ad67ac4 Potentially support 24-bit color in themes 2018-08-18 12:13:51 +09:00
K. Lange
179ffe37da [bim] Colors as const char * to prepare for themes 2018-08-18 12:08:40 +09:00
K. Lange
5903ff9a73 [bim] Change up how the line numbers work 2018-08-18 11:27:13 +09:00
K. Lange
f69d965749 [bim] rudimentary numeral highlighting 2018-08-18 11:17:04 +09:00
K. Lange
072520bf01 [bim] Fix default tabstop, tabs settings 2018-08-18 09:21:27 +09:00
K. Lange
c210ec4987 tabstops 2018-08-18 09:10:14 +09:00
K. Lange
27b46493f6 [bim] Fix bad buffer for utf8 encoding in write 2018-08-17 23:22:41 +09:00
K. Lange
4d735731f9 [bim] tabs or spaces? 2018-08-17 23:16:49 +09:00
K. Lange
f5ceddfab4 [bim] Hilight C character constants 2018-08-17 22:42:54 +09:00
K. Lange
3b9a8c18c7 [bim] fix an accidental off-by-one closing comments 2018-08-17 22:30:27 +09:00
K. Lange
626e3557cd Fix tab/escapes reseting colors 2018-08-17 22:21:34 +09:00
K. Lange
f79ee98749 [bim] Additionally release Bim under ISC 2018-08-17 22:05:24 +09:00
K. Lange
3f6c6b3320 qq sorry lioncash, your code disappeared years ago 2018-08-17 22:02:09 +09:00
K. Lange
8b69bba2dd Update outdated heading comment in shell 2018-08-17 21:56:50 +09:00
K. Lange
d1f1aa465e [bim] Add :help command 2018-08-17 21:52:37 +09:00
K. Lange
2089ab7bd8 [bim] Be sure to set syntax on new file 2018-08-17 21:31:33 +09:00
K. Lange
dbeeb21091 [bim] Better color theming support 2018-08-17 21:25:14 +09:00
K. Lange
c2dbcea8f2 [bim] oops, need to account for tab 2018-08-17 20:53:07 +09:00
K. Lange
3362f22b7f Render bytes <32 like vim does 2018-08-17 20:51:15 +09:00
K. Lange
90df5828f7 [bim] getopt and option to disable hilighting 2018-08-17 20:08:12 +09:00
K. Lange
896b5ba877 Fix missing free in sh file completion 2018-08-17 19:52:18 +09:00
K. Lange
8bff3a917e Basic command tab completion 2018-08-17 19:37:55 +09:00
K. Lange
ba0139f477 Fixup syntax command 2018-08-17 15:37:13 +09:00
K. Lange
c6844efd99 [bim] Support mouse for setting tab 2018-08-17 15:32:01 +09:00
K. Lange
e0447ffa34 [bim] More cleanup 2018-08-17 10:23:43 +09:00
K. Lange
c5e42f80e7 [bim] Multiline quotes and comments 2018-08-17 10:11:43 +09:00
K. Lange
e9e0b5141a [bim] Fix an off-by-one when scrolling the last line on screen 2018-08-17 08:40:09 +09:00
K. Lange
4c103806d0 Fix bad reads due to erroneous use of stdio 2018-08-17 08:36:45 +09:00
K. Lange
b79e33ad76 [bim] Fix more bad accesses 2018-08-17 08:30:16 +09:00
K. Lange
e1999b5306 [bim] Fixups and Linux support 2018-08-17 08:27:27 +09:00
K. Lange
f9d9226e07 [bim] Don't create or throw errors on non-existent files 2018-08-16 23:28:37 +09:00
K. Lange
1d967c882b [bim] Mouse support 2018-08-16 23:23:04 +09:00
K. Lange
87b6a3aba5 [bim] Improve rendering speed by not sending so many color codes 2018-08-16 22:43:18 +09:00
K. Lange
a84e3e7c4d [bim] syntax code doc cleanup 2018-08-16 19:55:07 +09:00
K. Lange
22221a20fe [bim] Syntax highlighting 2018-08-16 19:46:13 +09:00
K. Lange
0a46feb201 [bim] Be sure to z flags in new char_t's 2018-08-16 17:43:26 +09:00
K. Lange
1576a65597 Don't reset colors after drawing commandline 2018-08-16 17:37:42 +09:00
K. Lange
6eef68699d Add rudimentary text search 2018-08-16 17:25:59 +09:00
K. Lange
1bed29911e Lots of BIM cleanup 2018-08-16 16:50:05 +09:00
K. Lange
a51c5113f2 Change how mode gets tracked for status bars 2018-08-16 14:55:22 +09:00
K. Lange
458ceb00bd [bim] Support page up, page down, del 2018-08-16 14:06:54 +09:00
K. Lange
317a500bd6 [bim] redraw INSERT when scrolling insert mode 2018-08-16 13:30:46 +09:00
K. Lange
2d8c538b71 [bim] Use scrolling to not redraw display on cursor movements 2018-08-16 13:03:34 +09:00
K. Lange
c311199ad1 [bim] Fix buffer loading 2018-08-16 12:38:30 +09:00
K. Lange
991479501f [bim] Add shell commands 2018-08-16 12:16:07 +09:00
K. Lange
9cf3fa4fe2 Stuff ^[[H/^[[F for home/end instead of ^[OH/^[OF 2018-08-16 12:02:28 +09:00
K. Lange
bc1cce36e2 Fix cursor redraw in terminals 2018-08-16 12:00:53 +09:00
K. Lange
132b77ba53 no special toaru cursor handling 2018-08-16 11:45:18 +09:00
K. Lange
0d02884572 Fix end-of-file line feed handling 2018-08-16 11:38:35 +09:00
K. Lange
d5d04799ef [bim] Fix horizontal scrolling 2018-08-16 11:35:15 +09:00
K. Lange
dd5e256ad2 Complete editing 2018-08-16 10:47:49 +09:00
K. Lange
d72de8568c Try to cleanup cursor stuff in bim, but this may be a lost cause 2018-08-16 09:58:36 +09:00
K. Lange
f36d45b21c Adapt sh 'help' command to built-in command lengths 2018-08-15 23:00:12 +09:00
K. Lange
0ac9adf3f0 Catch bad file in readelf 2018-08-15 17:27:03 +09:00
K. Lange
36ca4d420b sys/mount.h 2018-08-15 15:49:01 +09:00
K. Lange
cce92274b8 Remove stray vim:s at ends of files 2018-08-15 15:47:43 +09:00
K. Lange
cf5e6ea3be Cleanups; remove write-out 2018-08-15 15:47:03 +09:00
K. Lange
6ac1370025 Catch some bad shell syntax 2018-08-15 13:09:12 +09:00
K. Lange
b6c3951497 Application cleanup 2018-08-15 10:07:33 +09:00
K. Lange
5b5462fb72 Library cleanup 2018-08-14 17:24:25 +09:00
K. Lange
2531edb2da Header comments for a bunch of apps 2018-08-14 17:13:38 +09:00
K. Lange
2d231a97af Cleanup init 2018-08-14 14:45:30 +09:00
K. Lange
1d28a49dd7 Remove calls to _XLOG in shell 2018-08-14 14:03:47 +09:00
K. Lange
0f9c404ee8 Support having spaces in kcmdline-parsed kernel command line paremeters by using the UNIT SEPARATOR 2018-08-14 11:39:00 +09:00
K. Lange
6430ce85b3 Handle spaces in variables when not quoted 2018-08-14 11:38:33 +09:00