Kunal Mohan
2038947a14
Big refactor: separate crates for client, server and utilities
2021-05-16 21:41:56 +05:30
Kunal Mohan
07ca0cbb11
Fix after rebase
2021-05-15 22:14:35 +05:30
Kunal Mohan
378dd90f8f
Do not pass config_options while spawning server process
2021-05-15 22:14:35 +05:30
Kunal Mohan
41212dc0e8
Fix after rebase
2021-05-15 22:14:34 +05:30
Kunal Mohan
e203f96d78
fix testing
2021-05-15 22:14:34 +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
Kunal Mohan
0d792e26f2
Switch to multiprocess model: Not looking good
2021-05-15 22:14:34 +05:30
Matthias Beyer
fd42119219
Remove unused import
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-05-15 14:31:54 +02:00
a-kenji
fef150c8ff
docs(changelog): Invert Asset Installation
2021-05-15 13:17:35 +02:00
a-kenji
ba206b1f29
Invert Assets Installation Feature
...
* changed `enable_automatic_asset_installation` to
`disable_automatic_asset_installation`
This ensures that people by default get the
asset installation and need to opt out at
compile time, rather than opt in.
* removed default features
Not needed anymore.
2021-05-15 12:45:24 +02:00
a-kenji
4134c952f6
Merge branch 'main' of https://github.com/zellij-org/zellij into set-data-dir
2021-05-12 20:03:04 +02:00
a-kenji
ffd8f17a94
Add Complile Time System Directories
...
closes #380
* --features disable_automatic_asset_installation
disables automatic installation of the `data_dir`
* a set PREFIX env will use `$PREFIX/zellij` as its `data_dir`
2021-05-12 19:51:29 +02:00
a-kenji
776a2c5151
Fix Simplified Ui
...
Propagate the config now, in all the places, as opposed to
fallback to a default.
2021-05-12 15:27:28 +02:00
a-kenji
6ffd698d0a
Slight rework of config loading.
...
Merges the cli and file configuration
2021-05-12 09:57:47 +02:00
a-kenji
5f2c5d2bda
!fixup Add Option for Simplified Layout
...
* fix test
2021-05-10 21:21:19 +02:00
a-kenji
85a4e476f2
fixup! Merge branch 'main' of https://github.com/zellij-org/zellij into simple-font-ui
2021-05-10 20:54:39 +02:00
a-kenji
ef69644f1b
fixup! Add Option for Simplified Layout
...
* merge structop and serde structs
2021-05-10 17:42:59 +02:00
a-kenji
088bcf3dd8
Add Option for Simplified Layout
...
* the simplified layout omits the Nerdfonts characters that are not
found in every Fontset
* add an optional config option to opt into the simplified ui
`simplified_ui: bool`
* add a config flag that allows opting into the simplified ui
`zellij options --simplified-ui`
* move the `clean` flag to the `setup` subcommand
2021-05-10 16:03:06 +02:00
Kyle Sutherland-Cash
ce92374f8e
cargo fmt
2021-05-08 10:55:13 -07:00
Kyle Sutherland-Cash
4fb4faa28d
Markups from self-review
2021-05-08 05:07:41 -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
2446aec82c
hotfix(logging): fix atomic_create_file and make set_permissions() return an error
2021-05-07 15:42:00 +05:30
Kunal Mohan
7982636741
explicitly set file and directory permissions
2021-05-06 22:01:27 +05:30
Kunal Mohan
d33106431d
Fix after rebase
2021-05-04 20:48:17 +05:30
Kunal Mohan
ea552d71e4
Introduce IpcReceiverWIthContext and move ipc stuff to common/ipc.rs
...
Fall back to /tmp/zellij-{uid} directory if runtime_dir is not available.
Use serialize_into() to avoid Vec allocation.
And some cleanup
2021-05-04 20:48:17 +05:30
Kunal Mohan
c6f93ba0d2
use better names for senders, receivers and threads
2021-05-04 20:48:17 +05:30
Kunal Mohan
913697b144
Place socket file in runtime directory or cache directory and use names crate for socket file name
2021-05-04 20:48:17 +05:30
Kunal Mohan
1eb732773a
use Uuid to generate unique server socket names
2021-05-04 20:48:16 +05:30
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
27393dfcf3
Share SessionMetadata between the server_router and the ipc_server thread
2021-05-04 20:48:15 +05:30
Kunal Mohan
246899a1dd
Remove ErrorContext from IpcSender and nit fixes
2021-05-04 20:48:15 +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
denis
ee14d5f5dd
wip: helper functions for ServerInstruction
2021-05-04 20:48:14 +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
e30ec5745e
Add router thread on server side as well
2021-05-04 20:47:52 +05:30
Kunal Mohan
965cc71918
Hide IpcChannel entirely behind OsApi
2021-05-04 20:47:52 +05:30
Kunal Mohan
660434be06
documentation and nit fix
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
be060e9a13
Introduce ServerContext
2021-05-04 20:47:51 +05:30
Kunal Mohan
2ab18244f7
fix tests
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