Commit Graph
26 Commits
Author SHA1 Message Date
Joe Lim ad6fa3fa73 Fix crash if log file can't be opened (#1937) 2025-03-21 18:56:13 +11:00
David Pedersen 2a3292560d Apply modernization fixes (#1921) 2025-02-23 17:05:20 +11:00
David Pedersen a018257d50 gofumpt lint and misc cleanup (#1682)
* gofumpt lint and misc cleanup

* Reorder fileInfo dircounts code to be clearer
2024-04-20 21:42:28 +02:00
Joe Lim 9068801831 Add query server command to expose internal state (#1384)
* Implement recv mechanism

* Implement recv commands

* Add mutex for state data structure

* Use string to store data instead of byte buffer

* Remove runPagerOn function

* Add history command

* Add documentation

* Add default `maps` command

* Add default `cmds` command

* Reduce locking time

* Remove empty line

* Fix documentation for `recv`

* Add comment about `recv` thread

* Change `recv` to `query`

* Fix comment

* test

* Add comment about connection lifetime

* Map `cmaps` by default
2023-09-08 18:52:19 +10:00
Ilya Grigoriev f1312ca969 Fix Staticcheck errors & minor logic simplification (#967)
Simplify logic in ui.go. In that diff, `st` would already have the
Reversed flag set; there's no need to set it again.

Also, minor changes to remove all the statickcheck errors VS code's
Go extension complains about.
2022-10-16 18:50:41 +03:00
Gokcehan 47620fa680 add command line option for log file
cc #739
2022-02-06 19:51:52 +03:00
Gokcehan 94e06201f9 set file permissions at creation
cc #726
2022-01-26 16:52:40 +03:00
Gokcehan 081d0585cd fix permissions of socket and log files
cc #726
2022-01-22 13:47:18 +03:00
Gokcehan 099cccdcb5 show remote error when client id does not exists
cc #495
2021-06-13 00:27:43 +03:00
Gokcehan 7acb69c40a echo logged server errors back to client as well 2021-05-21 16:54:01 +03:00
Gokcehan 7bf895e301 add server quit command to quit without clients
cc #177
2021-05-19 21:47:53 +03:00
Gokcehan 1841bba3e6 rename server quit command to quit!
cc #177
2021-05-19 21:47:08 +03:00
Gokcehan 6ca07b1bfc drop client connections on quit
cc #177
2021-05-19 21:45:27 +03:00
Gokcehan ec330c1bc5 use a local file instead of server load and save
cc #177
2021-05-19 19:54:50 +03:00
neeshy 1e94f4533e Guarantee preview/previewClear ordering (#537)
* Use chan struct{} in place of chan bool

* Revert "nav.checkReg now returns a boolean instead of calling nav.preview"

* Guarantee preview/previewClear ordering

* Pass the file path to the cleaner script
2020-12-27 04:23:03 +03:00
Daniel Martí 50ac367626 fix ineffective breaks, remove unused parameters (#210)
While at it, simplify a few pieces of code.
2019-08-12 14:52:27 +03:00
Gokcehan 40002a7752 add 'quit' command to server protocol
Related #106
2018-07-22 20:44:56 +03:00
Gokcehan a85e0da9b0 cleanup 2018-05-20 20:30:41 +03:00
Gokcehan 6e869bfa0e cleanup 2018-03-22 17:54:24 +03:00
Gokcehan 9b7bf63096 cleanup 2017-11-19 21:55:13 +03:00
Gokcehan 74078f6111 use newlines in communication protocol
Mentioned in #12 and #47.
2017-07-24 23:55:44 +03:00
Gokcehan e654700bd2 use tcp sockets on windows
Mentioned in #12.
2017-07-23 17:14:50 +03:00
Gokcehan 23f89f7c7f use single line strings for file list save and load 2016-11-06 21:32:14 +03:00
Gokcehan a2cc32c908 implement a send command for remove commands
Mentioned in #36.
2016-11-06 17:06:25 +03:00
Gokcehan 2f574962bc implement remote ping command 2016-10-30 02:20:35 +03:00
Gokcehan 4b266c97e9 initial commit 2016-08-13 15:49:04 +03:00