Commit Graph

618 Commits

Author SHA1 Message Date
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
f50bfa6707 async-reader.go: Panic when failing to write to pipe 2014-03-09 16:20:05 +08:00
Cheer Xiao
e1b98bfc83 Add util.AsyncReader, to supersede util.TimedReader 2014-03-09 15:16:56 +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
b600805597 Tweak words on navigation mode 2014-03-08 16:35:50 +08:00
Cheer Xiao
81d869d562 Mark navigation mode as implemented 2014-03-08 16:33:59 +08:00
Cheer Xiao
c046eebe9a Add navigation mode screenshot, update existing ones 2014-03-08 16:31:59 +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
3365759b21 Print eval errors with fmt.Print, not fmt.Println 2014-03-06 16:42:03 +08:00
Cheer Xiao
584d0f1ca6 Maintain navigation.selected properly when ascending 2014-03-06 10:22:44 +08:00
Cheer Xiao
f5c4b6658e Don't allow navigation.selected off the border... 2014-03-06 10:13:51 +08:00
Cheer Xiao
5b8d305195 Provide wrappers for edit.navigation methods 2014-03-06 10:09:55 +08:00
Cheer Xiao
c4e73557ca navigation.refresh now maintains .selected properly 2014-03-06 10:07:25 +08:00
Cheer Xiao
bd382fe9fb Navigation mode now shows files ordered by name 2014-03-06 09:59:57 +08:00
Cheer Xiao
712cf9ae73 Implement file listing of navigation mode 2014-03-06 01:09:57 +08:00
Cheer Xiao
1c4e67b0af edit: Builtin renames; check for nonexistent builtin in init() 2014-03-05 12:00:35 +08:00
Cheer Xiao
0197342914 Add stubs for navigation mode of editor 2014-03-05 11:25:32 +08:00
Cheer Xiao
de84052973 modeCompleting -> modeCompletion 2014-03-05 11:22:09 +08:00
Cheer Xiao
4be72a848a Handle signals by ignoring them (for now) 2014-03-03 17:53:23 +08:00
Cheer Xiao
b6e3a2692a README: Update var and set examples 2014-03-03 13:43:20 +08:00