Commit Graph
100 Commits
Author SHA1 Message Date
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 721a20269e add natural sorting as a sortby option
Closes #21.
2016-12-03 00:45:04 +03:00
Gokcehan 225bd5b49c fix number extraction ending with number 2016-12-03 00:38:23 +03:00
Gokcehan 932e644c93 handle escapes in completions 2016-12-03 00:28:25 +03:00
Gokcehan 217d89ff96 handle unusual escape codes in files 2016-11-29 17:01:33 +03:00
Gokcehan bfd33f8437 add whitespace escaping for backslash 2016-11-22 22:12:47 +03:00
Gokcehan 87434d3fe6 add quoting for single quote 2016-11-22 21:31:20 +03:00
Gokcehan 91ad00a294 remove client log file on successful quit 2016-11-22 21:01:29 +03:00
Gokcehan e643525d5c use a buffered channel for quitting 2016-11-22 20:42:37 +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 fdf8e9d480 send the actual passed cmd in sendServer 2016-11-18 23:38:38 +03:00
Gokcehan 4e1f1601fe add unicode command test 2016-11-18 22:45:49 +03:00
Gokcehan 586938fa70 cleanup 2016-11-18 22:41:18 +03:00
Gokcehan 697a05cdd0 handle unicode in the prompt
Mentioned in #30.
2016-11-18 22:28:55 +03:00
Gokcehan d67054a000 replace /x/text package with mattn/go-runewidth
Mentioned in #35.
2016-11-14 01:35:34 +03:00
Gokcehan d19809e8b6 evaluate search while reading 2016-11-14 01:16:52 +03:00
Gokcehan bd8f215c55 load file after shell commands 2016-11-12 14:33:59 +03:00
Gokcehan 609c637e82 move file sorting to nav 2016-11-11 00:18:56 +03:00
Gokcehan c6560ad607 fix less function for name sorting
Mentioned in #43.
2016-11-11 00:08:35 +03:00
Gokcehan d151334f8f remove yank/delete messages
Mentioned in #13.
2016-11-10 23:47:07 +03:00
Gokcehan 3b5759efba sync with server on startup
Mentioned in #13 and #36.
2016-11-10 23:43:54 +03:00
Gokcehan 428f9e3dcb sync all clients in yank/delete
Mentioned in #13 and #36.
2016-11-10 23:32:46 +03:00
Gokcehan 9962827926 add sync command to synchronize yanked/deleted files with server
Mentioned in #13 and #36.
2016-11-09 00:39:39 +03:00
Gokcehan c9023d4cdc load current file when ratios is modified 2016-11-08 00:13:37 +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 1511e05a2c comment 2016-11-06 23:25:59 +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 23f89f7c7f use single line strings for file list save and load 2016-11-06 21:32:14 +03:00
Gokcehan b83833ed1c remove periodic renew from non-features
Mentioned in #36.
2016-11-06 20:48:45 +03:00
Gokcehan 4891a87d11 pass client id as id variable for shell commands
Mentioned in #36.
2016-11-06 18:19:48 +03:00
Gokcehan ec4cb78535 rename paste command to put 2016-11-06 18:09:18 +03:00
Gokcehan daff377f2d create server expression channel for only successful connections
Mentioned in #42.
2016-11-06 17:08:16 +03:00
Gokcehan a2cc32c908 implement a send command for remove commands
Mentioned in #36.
2016-11-06 17:06:25 +03:00
Gokcehan d622e74c51 use a unique id for each client
Mentioned in #36.
2016-11-06 01:49:45 +03:00
Gokcehan e753b5b159 evaluate push command while reading 2016-10-31 11:52:32 +03:00
Gokcehan 2f574962bc implement remote ping command 2016-10-30 02:20:35 +03:00
Gokcehan 1e0b558344 use a seperate goroutine/channel for quit 2016-10-27 22:24:42 +03:00
Gokcehan 880615ddd0 add x/text package to travis dependencies 2016-10-20 23:50:52 +03:00
Gokcehan 667253906b handle unicode in the ui
Mentioned in #30 and #32.
2016-10-20 23:45:06 +03:00
Gokcehan d36e272272 show latest error in the config file at init 2016-10-16 21:27:40 +03:00
Gokcehan 5e2028e943 handle parsing of unmapping and uncommanding
Mentioned in #16.
2016-10-16 21:23:24 +03:00
Gokcehan 5d0dfcde79 check some syntax errors in parser 2016-10-16 14:19:19 +03:00
Gokcehan 5470783f99 remove error handling in scanner 2016-10-15 22:59:31 +03:00
Gokcehan a3965ca1d9 handle keys of push command while scanning 2016-10-15 21:46:31 +03:00
Gokcehan cecd3f9904 parse list expressions without extra semicolon 2016-10-15 15:56:53 +03:00
gokcehan 692e9116bf Merge pull request #29 from occivink/master
Add command to invert marks in current directory
2016-10-10 18:32:14 +03:00
Gokcehan 4d8a37ebc9 add cross build script 2016-10-08 16:19:47 +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 b5887ab698 add wiki links to the readme
Mentioned in #28.
2016-10-08 13:24:18 +03:00
Gokcehan fe3971f4c0 format 2016-10-05 18:39:48 +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 1683cdfd47 check if the directory is empty before nav operations
Mentioned in #23.
2016-10-05 18:26:55 +03:00
gokcehan 1f129476a8 Merge pull request #26 from radarhere/patch-1
Fixed typo
2016-10-04 22:21:55 +03:00
Gokcehan 986cc88db0 update features 2016-10-02 01:35:57 +03:00
Gokcehan 7a851f6c72 cleanup 2016-10-02 01:19:30 +03:00
Gokcehan dbb4220084 update features 2016-10-02 01:10:31 +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 751dbe8a7c show message for successful yank/delete
Mentioned in #13.
2016-10-02 00:11:45 +03:00
Gokcehan 00516af039 fix push with command example 2016-09-20 23:18:39 +03:00
Gokcehan 27135faccd add a push command to simulate key pushes 2016-09-18 19:21:24 +03:00
Gokcehan 155fbc5a16 load first file on startup 2016-09-18 12:58:32 +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 878d28237a add file previewing to the documentation
Mentioned in #5.
2016-09-15 21:44:06 +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 b0b06c46d2 escape backticks in documentation 2016-09-15 17:08:05 +03:00
Gokcehan 6094078185 buffer file and dir previews for drawing
Mentioned in #5.
2016-09-15 16:28:36 +03:00
Gokcehan ceb1f2d15a expand ~ to HOME in previewer option
Mentioned in #5.
2016-09-15 14:27:14 +03:00
Gokcehan 991bbc628f cleanup 2016-09-15 02:31:12 +03:00
Gokcehan d0f2ee1e35 remove old documentation 2016-09-15 02:27:43 +03:00
Gokcehan 6cfcbc192e point to the new documentation in the readme 2016-09-15 02:26:05 +03:00
Gokcehan 295c9bff76 add tutorial to the documentation 2016-09-15 02:18:50 +03:00
Gokcehan bfb0c0c4a8 add example mapping for documentation 2016-09-14 00:49:02 +03:00
Gokcehan 7d2ee16e2d generate documentation and embed in binary 2016-09-14 00:40:14 +03:00
Gokcehan 57bebef804 use recursive and backup options for paste 2016-09-13 22:56:03 +03:00
Gokcehan 9c2f594a6b add empty match tests 2016-09-12 23:40:17 +03:00
Gokcehan a2c7656301 add comp tests 2016-09-12 23:33:52 +03:00
Gokcehan 37a7eda095 add missing files 2016-09-12 19:19:47 +03:00
Gokcehan 1fcd70afa0 add parse tests 2016-09-12 19:18:13 +03:00
Gokcehan ee0f931db8 add command counts 2016-09-09 01:03:25 +03:00
Gokcehan a31ce17b90 add half-up/half-down/page-up/page-down commands 2016-09-09 00:04:44 +03:00
Gokcehan 34c58b634a add basic readline shortcuts 2016-09-07 22:34:29 +03:00
Gokcehan a3594319b7 do not fail if USER is not set
Related to #12.
2016-09-07 14:37:32 +03:00
Gokcehan c93738a6ec cleanup 2016-09-07 01:47:08 +03:00
Gokcehan f59227c5f9 add releases link to readme 2016-09-07 00:57:17 +03:00
Gokcehan 3d493e8271 use filepath module instead of path for portability
This should fix path separator confusion in windows.

Mentioned in #12.
2016-09-07 00:27:55 +03:00
Gokcehan 90c282e1ec shorten warning in readme 2016-09-04 16:33:54 +03:00
Gokcehan 712fb6fa71 organize badges 2016-09-04 16:32:27 +03:00
gokcehan 46176a5346 Merge pull request #18 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-09-04 16:30:38 +03:00
Gokcehan 2ba5c06b5e add link to google groups 2016-09-04 16:26:26 +03:00
Gokcehan f304f863b9 cleanup 2016-09-02 23:40:13 +03:00
Gokcehan f81146ae1e cleanup 2016-09-02 23:13:37 +03:00
Gokcehan 607cd7aeff format 2016-09-02 23:06:25 +03:00
Gokcehan 66482b8495 use XDG_CONFIG_HOME if set 2016-09-02 23:04:26 +03:00
Gokcehan 188bd97b3b fix jiggle when scrolloff is maxed 2016-09-02 22:47:11 +03:00