Commit Graph

202 Commits

Author SHA1 Message Date
Cheer Xiao
336815fe4b edit: Ditch cancel-history, just use start-insert 2014-03-13 22:30:23 +08:00
Cheer Xiao
36ab4b4f12 edit: Fix history 2014-03-13 22:27:38 +08:00
Cheer Xiao
370b88cfea edit: Get rid of leReturn.newMode and changeMode 2014-03-13 22:21:58 +08:00
Cheer Xiao
8e56d98994 edit: Put all transitional states in editorState 2014-03-13 22:14:49 +08:00
Cheer Xiao
f034e85888 edit: editorState.history is now not a pointer 2014-03-13 15:53:48 +08:00
Cheer Xiao
38a8c657fc edit: Reset ed.navigation properly 2014-03-10 21:34:54 +08:00
Cheer Xiao
de062a03d1 edit: Handle SIGWINCH and SIGINT
SIGINT handling is a bit buggy but will be fixed.
2014-03-10 21:33:08 +08:00
Cheer Xiao
2820389fa4 edit: sigch -> sigs 2014-03-10 21:25:00 +08:00
Cheer Xiao
0624368bcc Use util.AsyncReader to build a new async edit.Reader
Now we can start really dealing with signals!
2014-03-10 21:22:54 +08:00
Cheer Xiao
1e4cd9dea0 edit: Make 0 a special rune for invalid key 2014-03-10 19:07:47 +08:00
Cheer Xiao
877cbe58d1 edit: Key.rune -> .Rune 2014-03-10 19:06:22 +08:00
Cheer Xiao
64dd483c73 edit: Factor out {Setup Cleanup}Terminal 2014-03-10 18:52:39 +08:00
Cheer Xiao
b2f4e8f781 edit: ReadLine now accepts funcs as prompt and rprompt.
The prompt is now correctly updated when cding in navigation mode
2014-03-10 14:51:37 +08:00
Cheer Xiao
afaa18377e edit: Implement and bind move-dot-{up down} 2014-03-10 13:47:19 +08:00
Cheer Xiao
6b7e1296c1 Add util.Find{FirstEOL LastSOL}; use it 2014-03-10 00:31:22 +08:00
Cheer Xiao
8460fa8b4c edit: Fix killLineRight 2014-03-10 00:28:43 +08:00
Cheer Xiao
c9686c85be edit: Export most funcs in wcwidth.go 2014-03-10 00:17:29 +08:00
Cheer Xiao
bbca89f4c9 Support Shift-Tab 2014-03-10 00:12:12 +08:00
Cheer Xiao
20924b0c31 edit: Don't use Capital in error msg 2014-03-10 00:07:29 +08:00
Cheer Xiao
2a4887007b edit: Fix (*BadEscSeq).Error 2014-03-10 00:01:51 +08:00
Cheer Xiao
0e8756ce16 edit: Ditch -b or -f in builtin names
One of up/down, left/right or prev/next is used depending on the context.
2014-03-09 23:59:49 +08:00
Cheer Xiao
d017c35dd9 edit: Ditch reader.unreadBuffer 2014-03-09 16:21:00 +08:00
Cheer Xiao
1e788f8161 edit: Fix command mode line 2014-03-09 00:57:49 +08:00
Cheer Xiao
075c399591 edit: Only do a full refresh when w.oldBuf.cells != nil
This is quite dirty...
2014-03-09 00:56:17 +08:00
Cheer Xiao
3fd932c5bc edit: Implement and bind builtin kill-rune-f 2014-03-09 00:53:07 +08:00
Cheer Xiao
331ea9cb09 edit: Implement editor builtins kill-line-{b f} really in terms of lines 2014-03-09 00:49:30 +08:00
Cheer Xiao
88907441b0 edit: Support inserting Enter 2014-03-09 00:07:11 +08:00
Cheer Xiao
15d141036f edit: Remove trailing content when doing full refresh 2014-03-08 23:30:28 +08:00
Cheer Xiao
9a1af10096 edit: Use full refresh when necessary 2014-03-08 23:26:13 +08:00
Cheer Xiao
e8d7ef625a edit: Line-based delta rendering 2014-03-08 23:08:47 +08:00
Cheer Xiao
0c83cd12ba Small refactor 2014-03-08 22:45:47 +08:00
Cheer Xiao
b26c5112bb Completion listing now supports colors too! 2014-03-08 16:25:37 +08:00
Cheer Xiao
b89983241f determineFeature should use Lstat, not Stat 2014-03-08 16:19:18 +08:00
Cheer Xiao
3443f12660 Navigation mode: fix buffer.extendHorizontal 2014-03-08 16:18:45 +08:00
Cheer Xiao
9fcdac8e44 Fix navigation mode when pwd is / 2014-03-08 16:15:00 +08:00
Cheer Xiao
71c491af9d Fix navigation listing coloring 2014-03-08 16:05:13 +08:00
Cheer Xiao
dff9aeaf88 Navigation mode: when descending into dir, reset selected 2014-03-08 15:55:16 +08:00
Cheer Xiao
0ea0ba22ef Implement coloring of navigation listing (buggy) 2014-03-08 15:52:51 +08:00
Cheer Xiao
603e175d90 Add edit/ls-color.go 2014-03-08 15:43:05 +08:00
Cheer Xiao
896fa1b9c3 Put padding inside navigation columns 2014-03-08 12:36:17 +08:00
Cheer Xiao
9b101a9317 Meaningless rename... 2014-03-08 12:13:41 +08:00
Cheer Xiao
e5e0d9dd66 Implement directory preview in navigation mode 2014-03-08 12:10:23 +08:00
Cheer Xiao
1128aee716 Much cleaner navigation listing rendering 2014-03-07 22:33:22 +08:00
Cheer Xiao
508a9d7a31 Fix completion listing scrolling, remove dot.line hack 2014-03-06 17:53:28 +08:00
Cheer Xiao
a9b57d5e4b More detailed mode line; add mode line for modeNavigation 2014-03-06 17:48:14 +08:00
Cheer Xiao
bb4a4f89dc edit: Abstract out navColumn 2014-03-06 17:43:34 +08:00
Cheer Xiao
b1f45dc029 Massively improved bufListing trimming 2014-03-06 17:27:03 +08:00
Cheer Xiao
7653703041 Fix doc 2014-03-06 16:50:04 +08:00
Cheer Xiao
fe92c5d97e Use camelCase for goto label 2014-03-06 16:44:41 +08:00
Cheer Xiao
584d0f1ca6 Maintain navigation.selected properly when ascending 2014-03-06 10:22:44 +08:00