Commit Graph

28 Commits

Author SHA1 Message Date
Gokcehan
6631cdb23b use cmd.exe pause command for waiting on windows
Mentioned in #12.
2017-08-02 20:08:17 +03:00
Gokcehan
9962b378a8 add commands history
Mentioned in #81.
2017-05-15 12:30:50 +03:00
Gokcehan
52fbe460b7 update preview after shell commands
Mentioned in #64 and #71.
2017-04-09 18:18:02 +03:00
Gokcehan
b790c53838 initialize server channel earlier for config file
Mentioned in #36.
2017-02-11 13:42:16 +03:00
Gokcehan
ad6ead5e45 add a filesep option to configure file seperator
Mentioned in #47.
2016-12-24 16:06:44 +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
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
e643525d5c use a buffered channel for quitting 2016-11-22 20:42:37 +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
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
4891a87d11 pass client id as id variable for shell commands
Mentioned in #36.
2016-11-06 18:19:48 +03:00
Gokcehan
daff377f2d create server expression channel for only successful connections
Mentioned in #42.
2016-11-06 17:08:16 +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
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
ee0f931db8 add command counts 2016-09-09 01:03:25 +03:00
Gokcehan
7fc93313bc skip ui drawing if exit flag is set
Mentioned in #15.
2016-09-02 21:20:01 +03:00
Gokcehan
3d1b090359 fix wait key command for posix shells 2016-08-28 16:58:24 +03:00
Gokcehan
ce25fc55ca add an option to configure shell used by commands 2016-08-27 14:12:03 +03:00
Gokcehan
df6c23769f close termbox during skipping commands
Mentioned in #8.
2016-08-27 00:20:08 +03:00
Gokcehan
19561f6531 show completion menu for multiple match 2016-08-21 18:41:03 +03:00
Gokcehan
4b0a6d1013 cleanup 2016-08-17 23:28:42 +03:00
Gokcehan
09ebc54d20 add error messages for last dir file 2016-08-17 22:09:34 +03:00
Gokcehan
bc4c3c127b do not follow symlinks on exit 2016-08-14 15:45:24 +03:00
Gokcehan
4b266c97e9 initial commit 2016-08-13 15:49:04 +03:00