Qi Xiao
f7bc03deb9
Put editor builtin declarations and bindings in separate mode files.
...
This is to prepare to put the builtins in their own namespaces.
2017-05-19 01:25:06 +01:00
Qi Xiao
344fddfb83
Remember location when cding in nav mode.
...
This fixes #340 .
2017-03-29 22:53:22 +02:00
Qi Xiao
6f47909c20
Move edit.Key to a new edit/uitypes package.
2017-02-11 22:29:18 -05:00
Qi Xiao
53c11b745e
Let modes decide whether the cursor is on the modeline.
2017-02-10 04:53:24 -05:00
Qi Xiao
308eb188a3
In edit.listingProvider.Show, separate header and content.
2017-02-09 14:01:37 -08:00
Qi Xiao
dbce8a211f
Meaningless renames.
2017-02-03 20:36:55 -08:00
Qi Xiao
cfe742f62f
More renderers.
2017-02-03 20:34:12 -08:00
Qi Xiao
5e12df7b8b
Add one level of abstraction to make ModeLine methods testable.
2017-02-03 15:36:01 -08:00
Christian Muehlhaeuser
94e0275898
Added styles type, which translates human-readable values to ANSI codes
2017-01-11 19:50:29 +00:00
Qi Xiao
6b67404f25
Read at most 64K for file preview in nav mode.
...
This fixes #283 .
2016-10-17 00:00:26 +08:00
Qi Xiao
defc4f7df7
Show navColumn.err correctly.
2016-10-16 23:47:26 +08:00
Qi Xiao
a80e6d15fa
Only preview regular file < 1MB in nav mode.
2016-10-16 22:00:28 +08:00
Qi Xiao
02a38a7ac3
Support file preview in nav mode.
...
This fixes #282 .
2016-10-16 19:45:39 +08:00
Qi Xiao
f0f8467fe3
Remove dead code.
...
Dead code was discovered by github.com/remyoudompheng/go-misc/deadcode.
2016-10-13 21:58:59 +08:00
Qi Xiao
5ef652c414
Enter in nav mode now inserts selected and quit nav mode.
2016-10-11 21:26:04 +08:00
Shengjing Zhu
e6c642d99c
honor LS_COLORS env ( #248 )
...
fix #237
2016-10-10 23:58:53 +08:00
Qi Xiao
b873d7ec7a
Move Wcwidth from edit to util; Wcwidths -> Wcswidth
2016-10-07 19:21:01 +08:00
Qi Xiao
10a5f0bde7
Refresh dir preview when changing filter in nav mode.
2016-10-04 00:50:50 +08:00
Qi Xiao
a8dead083d
Refresh navigation after Page{Up,Down}.
...
This fixes #37 .
2016-09-15 15:44:24 +02:00
Qi Xiao
ea3360c3b1
Get rid of edit.BoundFunc.
...
Editor builtins now implement eval.FnValue directly, and there is a
quick path in (*Editor).CallFn to skip redirections when calling an
editor builtin.
2016-09-15 15:22:47 +02:00
Qi Xiao
e92a101925
Use a sophisticated algorithm to determine widths of nav columns.
2016-09-10 03:25:43 +02:00
Hui Yiqun
516892695f
clear filter when ascend or descend
2016-04-12 11:19:40 +08:00
Hui Yiqun
ab57388fbf
go fmt
2016-04-12 11:16:25 +08:00
Hui Yiqun
2dbd49f61a
add filter support to navigation mode
2016-04-12 11:08:53 +08:00
Hui Yiqun
9f0bf2c942
fix a possible index out of range
2016-04-12 11:08:53 +08:00
Qi Xiao
29dbe00e49
Add nav-page-{up,down}.
2016-04-05 06:36:30 +02:00
Qi Xiao
1b1e9ed225
Fix display of empty navColumn.
2016-04-02 22:20:52 +02:00
Qi Xiao
3cb64d4453
Indicate n.showHidden in the mode line of nav mode.
2016-04-02 21:05:14 +02:00
Qi Xiao
fae9ef30ca
Implement navigation mode using listing.
...
This fixes #164 .
2016-04-02 21:01:26 +02:00
Qi Xiao
a642db1b1d
edit: Simplify (*buffer).extendHorizontal
2016-03-31 05:43:16 +02:00
Qi Xiao
4125c2bb92
Slightly simplify navigation mode code.
2016-03-23 17:33:00 +01:00
Qi Xiao
80ec15b113
Rename editor builtins.
2016-03-21 01:30:26 +01:00
Qi Xiao
119658702b
Let nav-insert-selected add a trailing space.
2016-03-15 03:36:00 +01:00
Qi Xiao
986ebcff17
edit: Moving things around a bit.
2016-02-27 23:09:27 +01:00
Qi Xiao
275eab8ead
edit: Eliminate aliases of start-insert.
2016-02-27 22:48:48 +01:00
Qi Xiao
fc03fb822b
edit: Support navigating history list. Cleanups.
2016-02-27 22:35:31 +01:00
Qi Xiao
0b35396e69
edit: Modularize rendering of listing.
2016-02-27 22:12:01 +01:00
Qi Xiao
68e4852f8e
edit: Eliminate LineRead.
2016-02-27 21:44:48 +01:00
Qi Xiao
244f3e7d08
edit: Modularize the modes.
2016-02-27 21:28:17 +01:00
Qi Xiao
0e7f6d08df
Enhance navigation mode.
2016-02-27 19:50:52 +01:00
Qi Xiao
8145be627a
edit: Reorganize.
2016-02-27 15:22:30 +01:00
Qi Xiao
e90c3fc984
Nav mode hides dotfiles by default. ^H triggers.
...
This resolves #114 .
2016-02-23 03:00:19 +01:00
Qi Xiao
1c98a9b97f
Cleanups.
2016-02-12 13:31:24 +01:00
Qi Xiao
67d09b41b8
Refresh dir preview after cd'ing in navigation mode.
...
This fixes #111 .
2016-02-12 12:28:58 +01:00
Qi Xiao
981955abee
edit: attr -> style
2016-01-31 02:36:26 +01:00
Cheer Xiao
cd38cbe45e
Remove bogus comments
2014-04-15 10:52:39 +08:00
Cheer Xiao
227343fffe
edit: On encountering error in navigation.refresh, store it and continue
2014-04-15 10:51:23 +08:00
Cheer Xiao
9fcdac8e44
Fix navigation mode when pwd is /
2014-03-08 16:15:00 +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