Commit Graph

71 Commits

Author SHA1 Message Date
Gokcehan
80f43fe39c preview files asynchronously
Mentioned in #5 and #92.
2018-01-28 20:13:28 +03:00
Gokcehan
58538c8020 add a ruler to statline to show current position 2018-01-11 20:48:03 +03:00
Gokcehan
fd3a983b29 clear keybind list when not found 2018-01-11 19:44:02 +03:00
Gokcehan
2b4c0f913b load directories asynchronously
Mentioned in #92.
2018-01-11 19:25:48 +03:00
Chris Howey
ec8e75ba30 make terminal 256 color output the default (#93)
this will allow terminals that support 256 color ansi codes to have
preview applications use 256 colors
2018-01-01 01:10:00 +03:00
Gokcehan
946de57f26 keep ansi attributes at next line 2017-11-22 17:17:23 +03:00
Gokcehan
ba0a9005b1 prevent ansi code zero error 2017-11-20 18:46:00 +03:00
Gokcehan
9b7bf63096 cleanup 2017-11-19 21:55:13 +03:00
Gokcehan
1a39b00a8f replace renew with redraw while reading commands
Mentioned in #92.
2017-11-19 02:39:42 +03:00
Gokcehan
9ac32fc850 cache directory contents in memory
Mentioned in #92.
2017-11-19 01:25:41 +03:00
Gokcehan
cb577a4c3a handle user variables on all platforms 2017-08-06 11:05:46 +03:00
Gokcehan
458bc71688 use conditional compilation for windows 2017-08-05 19:23:55 +03:00
Karol Woźniak
fe05105c88 Implement directory count info (#85) 2017-06-03 14:12:43 +03:00
Gokcehan
3fd1222e4f implement cmap for command line mapping 2017-03-10 18:53:21 +03:00
Gokcehan
c55c4bf254 rename showinfo option to info
Related to #39.
2017-02-04 21:33:36 +03:00
Gokcehan
d605781d09 modify showinfo to handle multiple values
Mentioned in #39.
2017-02-04 21:28:03 +03:00
Gokcehan
a99601668a disable buggy cursor move in windows 2017-01-07 18:02:14 +03:00
Olivier Perret
a704248696 preserve mark order in f[sx] variables (#59)
* preserve mark order in f[sx] variables

* Revert "preserve mark order in f[sx] variables"

This reverts commit e02c5e8bb3ec58f7cefafc92419f14c51e6730ef.

* preserve mark order in f[sx], but more efficiently
credit to @gokcehan for the idea
2017-01-06 00:23:22 +03:00
Gokcehan
af113e71ef fill with spaces instead of null chars 2016-12-22 22:58:55 +03:00
Gokcehan
4f9515564d use fixed length file sizes for info line
Mentioned in #49.
2016-12-19 22:08:53 +03:00
Gokcehan
2085b6d797 handle ratios change at runtime 2016-12-18 22:38:28 +03:00
Gokcehan
d6bb811eef cleanup 2016-12-18 21:51:27 +03:00
Gokcehan
a717c31ca1 cleanup 2016-12-18 21:34:41 +03:00
Gokcehan
e532db082f use lowercase initials for type names 2016-12-18 00:47:37 +03:00
Gokcehan
8d42bb166b increase lookahead length for ansi codes
Mentioned in #52.
2016-12-17 15:27:27 +03:00
Gokcehan
18bf206e8c handle empty folders properly while drawing the ui 2016-12-15 16:43:29 +03:00
Gokcehan
5f87cb2542 implement asynchronous read commands
This commit changes previous reading command implementation to an
asynchronous implementation. By the nature of this change, this commit
touches many places in the ui and evaluator. Aim is to fix the following
problems:

- There is no race condition anymore when reading commands and other
commands update the ui at the same time.

- Autocompletion and keymenu is now drawn in the main draw event. This
should fix some ui glitches when a new menu is smaller than the previous
one.

- Window resize event when reading a command is now properly handled.

- Readline actions are now regular commands. This should make it
possible to change the default keybindings for these actions in the
future.

Mentioned in #36.
2016-12-15 12:26:06 +03:00
Gokcehan
f66a4a4a2e don't override error messages in statusline 2016-12-03 01:05:49 +03:00
Gokcehan
217d89ff96 handle unusual escape codes in files 2016-11-29 17:01:33 +03:00
Gokcehan
c8202bbc7a add timefmt option for time format in status line
Mentioned in #41.
2016-11-21 23:13:33 +03:00
Gokcehan
697a05cdd0 handle unicode in the prompt
Mentioned in #30.
2016-11-18 22:28:55 +03:00
Gokcehan
724422efa3 keep a copy of saved files and show in the ui
Mentioned in #13 and #36.
2016-11-07 23:32:19 +03:00
Gokcehan
6008bef959 move readExpr from ui to app 2016-11-06 23:10:42 +03:00
Gokcehan
84d066050c cleanup 2016-11-06 22:59:42 +03:00
Gokcehan
4fff4f97e2 remove redundant flush from ui.renew 2016-11-06 22:51:54 +03:00
Gokcehan
e753b5b159 evaluate push command while reading 2016-10-31 11:52:32 +03:00
Ivan Menshykov
ca090fd144 Shadowing variable (#40) 2016-10-30 23:45:11 +03:00
Gokcehan
2f574962bc implement remote ping command 2016-10-30 02:20:35 +03:00
Karol Woźniak
c9b4389c65 Refactor Nav API around symlinks handling (mostly) (#33)
* gofmt ui.go

* Refactor Nav API around symlinks handling (mostly)

1. Get both `Lstat` and `Stat` while reading the files. Stat info is
   used by default, but we still can tell it's a link if needed.
2. Remove all other `Stat` calls from different places.
3. Handle hidden files while reading.
4. `currFile` now returns error if there are no files.
5. `currEmpty` and `currPath` not longer necessary, removed.
6. `open` now returns a named error ErrNotDir, where expected.

7. Side effect: Links that point at directories are now sorted among
   "actual" directories.
2016-10-24 22:18:31 +03:00
Gokcehan
667253906b handle unicode in the ui
Mentioned in #30 and #32.
2016-10-20 23:45:06 +03:00
Gokcehan
936b1e049a leave the cursor at the beginning of the current file
Mentioned in #22.
2016-10-08 14:18:26 +03:00
Gokcehan
1cee8b9d9c handle symbolic links to directories for previews
Mentioned in #24 and #25.
2016-10-05 18:36:12 +03:00
Gokcehan
d66eb7349d clean path before changing directory 2016-10-02 00:39:03 +03:00
Gokcehan
7fe72c188f check null bytes instead to detect binaries 2016-10-02 00:29:14 +03:00
Gokcehan
27135faccd add a push command to simulate key pushes 2016-09-18 19:21:24 +03:00
Gokcehan
1e7811334e use the same goroutine to wait preview command
Mentioned in #5.
2016-09-18 12:56:13 +03:00
Gokcehan
d51e99adc1 close pipe and then wait command in a separate goroutine
Mentioned in #5.
2016-09-16 15:22:39 +03:00
Gokcehan
f82073603f clean command resources after preview script call
Mentioned in #5.
2016-09-16 13:27:38 +03:00
Gokcehan
0395f75ea9 break previewer output pipe when enough lines are read
Mentioned in #5.
2016-09-15 21:26:54 +03:00
Gokcehan
6094078185 buffer file and dir previews for drawing
Mentioned in #5.
2016-09-15 16:28:36 +03:00