Kunal Mohan
2038947a14
Big refactor: separate crates for client, server and utilities
2021-05-16 21:41:56 +05:30
Kunal Mohan
c5675e965b
Use ClientToServerMsg and ServerToClientMsg for IPC
2021-05-15 22:14:34 +05:30
Kunal Mohan
f2c43ac577
Fix memory overflow error and add panic hook for server
2021-05-15 22:14:34 +05:30
Dante Pippi
9c09cf1658
New behavior for h and l
...
New behavior for h and l, will change tabs if there are no available
panes in the direction.
cargo clippy
Ensuring atomicity for the MoveFocusOrTab
- Blocking the input thread for the action MoveFocusOrTab
- Using "unreachable" macro in match arm to make it clear that the
directions Up and Down should not be used with the action MoveFocusOrTab
Adding tests
2021-05-09 17:05:14 -03:00
Kyle Sutherland-Cash
3689d652ef
And format...
2021-05-09 01:52:21 -07:00
Kyle Sutherland-Cash
0a17323bc4
Bit more module tidy up
2021-05-09 01:48:21 -07:00
Kyle Sutherland-Cash
74b5479629
Revert accidental rename of ToggleActiveSyncTab
2021-05-09 01:37:27 -07:00
Kyle Sutherland-Cash
9a3e8bcb84
First round of merging against server-client and color stuff
2021-05-08 04:32:31 -07:00
dantepippi
543b70a2bd
Moving the sync command to the Tab mode ( #412 )
...
* Moving the sync command to the Tab mode
* Fixing bug related to plugin panes and sync mode
When sync mode was enabled the input from a plugin pane was being
incorrectly ignored.
2021-05-07 16:07:23 +02:00
Kunal Mohan
9110e444b8
remove Split, OpenFile and MoveFocus from CliArgs
2021-05-04 20:48:16 +05:30
Kunal Mohan
42079f8d04
Refactor CommandIsExecuting to have a single variant
2021-05-04 20:48:16 +05:30
Kunal Mohan
b7aa3fc21a
Use interprocess crate for IPC
2021-05-04 20:48:16 +05:30
Kunal Mohan
9fc1f0038e
Refactor ServerInstruction enum to use Action enum
2021-05-04 20:48:16 +05:30
Kunal Mohan
fedb588330
Fix after rebase
2021-05-04 20:48:15 +05:30
Kunal Mohan
2a648187fc
Fix after rebase
2021-05-04 20:48:15 +05:30
Kunal Mohan
223ee743e1
Move screen and plugins to client side.
...
Remove AppInstruction enum
spawn pty thread, screen thread and plugin thread on demand
2021-05-04 20:48:15 +05:30
Kunal Mohan
ea732166e3
client side threads should send messages directly to server and router threads should do the actual routing
2021-05-04 20:48:14 +05:30
Kunal Mohan
4f088e8185
split start into start_server and start_client
2021-05-04 20:48:14 +05:30
Kunal Mohan
2059d2c6aa
Fix after rebase
2021-05-04 20:48:14 +05:30
Kunal Mohan
e30ec5745e
Add router thread on server side as well
2021-05-04 20:47:52 +05:30
Kunal Mohan
bc2345c413
Hide server-side Ipc channels creation behind OsApis and some documentation fixes
2021-05-04 20:47:52 +05:30
Kunal Mohan
fd1debaa79
Fix after rebase
2021-05-04 20:47:51 +05:30
Kunal Mohan
be060e9a13
Introduce ServerContext
2021-05-04 20:47:51 +05:30
Kunal Mohan
0d814ebcde
Divide OsApi into ClientOsApi and ServerOsApi and move calls to os thread
2021-05-04 20:47:51 +05:30
denis
70d8be0741
wip: remove the commands that are called only on the client
2021-05-04 20:47:50 +05:30
denis
daddac65aa
wip: here goes the os_thread and OsContext
2021-05-04 20:47:50 +05:30
Kunal Mohan
ef1c902be6
Introduce DoneCLosingPane message to ensure atomicity in state change
2021-05-04 20:47:50 +05:30
Kunal Mohan
5ece7f44cc
Use IPC for Server to client as well
...
Add router thread
2021-05-04 20:47:49 +05:30
Kunal Mohan
6fc1a5bf92
another try
2021-05-04 20:47:49 +05:30
Kunal Mohan
7beb246250
try fixes
2021-05-04 20:47:48 +05:30
Kunal Mohan
588cdaa008
isolate pty thread
2021-05-04 20:47:48 +05:30
Kyle Sutherland-Cash
69d34c3e09
Don't commit to master like an idiot... :(
2021-05-01 09:32:30 -07:00
Kyle Sutherland-Cash
bb2369dcb8
Use Bus type for PTY thread (incomplete)
2021-05-01 08:48:58 -07:00
Dante Pippi
1a84c5f4ec
New feature: Synchronize text sent to panes
2021-04-28 11:15:58 -03:00
Hongjie Zhai
fad088a868
add scroll page
2021-04-21 14:27:58 +09:00
Kunal Mohan
380d69978c
make error model more autonomous
2021-04-12 20:33:22 +05:30
Aram Drevekenin
313ac9f414
fix(performance): remove unnecessary allocations from pty ( #264 )
...
* work
* refactor(pty): removed unused code
* style(comment): remove unused
* style(fmt): rustfmt
2021-04-12 16:00:05 +02:00
Aram Drevekenin
65c75ebb95
feat(controls): add quick navigation ( #260 )
...
* feat(input): quick navigation
* feat(ui): quick navigation
* style(fmt): rustfmt
2021-04-08 11:36:49 +02:00
Aram Drevekenin
1739f370f9
* fix(ui): react to terminal window size changes (SIGWINCH) ( #245 )
...
* fix(ui): react to terminal window size changes (SIGWINCH)
* style(fmt): rustfmt
* style(format): remove some warnings
* style(fmt): rustfmt
2021-04-01 17:38:13 +02:00
Brooks J Rady
138ba850eb
fix(plugin): send mode updates to subscribed plugins on load
2021-03-31 12:13:00 +01:00
Brooks J Rady
b6f945da35
Wrap up the plugin system refactor, running everything through update()
2021-03-25 17:22:10 +00:00
Brooks J Rady
84a5cf95d1
Converted tab updates to the new generic update() function
2021-03-25 15:51:39 +00:00
Brooks J Rady
0371c111b7
Removed AppState and the unneeded get_help() function
2021-03-25 14:56:59 +00:00
Brooks J Rady
f2f7758384
Merge in changes from main and fix clippy lints
2021-03-25 14:24:11 +00:00
Brooks J Rady
23df8e447a
Move most key handling to the update() + event system
2021-03-23 23:57:18 +00:00
Brooks J Rady
ac55e59047
Initial implementation of the update callback + upstream termion
2021-03-23 19:52:59 +00:00
Brooks J Rady
a1e6171031
Rename references of 'draw' to 'render' for plugins
2021-03-23 16:26:34 +00:00
denis
99c578ea1d
chore: formatting
2021-03-21 10:48:21 +02:00
denis
021c8608c8
wip: not sure about updating the input_mode and tab switches for now
2021-03-20 16:54:18 +02:00
Brooks J Rady
1dd4045e23
Clippy compels me to cull code
2021-03-09 22:20:16 +00:00