Commit graph

490 commits

Author SHA1 Message Date
Aram Drevekenin
9bb300e1c0
fix(compatibility): properly fill viewport with styles when clearing it (#493) 2021-05-12 11:27:53 +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
38b8f64ae6
Merge pull request #479 from a-kenji/simple-font-ui
Add Option for Simplified Layout
2021-05-11 22:09:33 +02:00
a-kenji
1859abbb23 Change Ordering of the Default Config Directories
* since darwin doesn't have distinct data and config
  directories, assumptions that we had were invalid

* now the `HOME` config directory is loaded before the
  system config directory, in this case populating the
  data directory doesn't invalidate possible user configuration,
  because the configuration directory now exists
2021-05-11 13:24:26 +02:00
a-kenji
4b39699964
Merge branch 'main' into mac-config 2021-05-11 11:10:34 +02:00
a-kenji
a116f6e177 Fix Max Config Directory
closes  #485

* fixes a regression on the config directory handling on mac
2021-05-11 11:09:04 +02:00
Aram Drevekenin
073d39705e
Terminal compatibility: various behaviour fixes (#486)
* fix(compatibility): various behaviour fixes

* style(fmt): rustfmt

* style(fmt): thanks clippy for teaching me about matches!
2021-05-11 11:06:19 +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
e2514b411c
Merge branch 'main' into dump-config-exit 2021-05-10 17:24:19 +02:00
a-kenji
0abb165aec Fix exit code on dump-default-config 2021-05-10 17:14:00 +02:00
a-kenji
9c5f0a05c1 Poke 2021-05-10 17:08:30 +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
Dante Pippi
62796c1a31 After rebase 2021-05-09 17:24:15 -03:00
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
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
Aram Drevekenin
632a7a3209
fix(compatibility): upgrade vte to support csi subparameters (#469)
* fix(compatibility): upgrade vte to support csi subparameters

* style(fmt): rustfmt and clippy
2021-05-07 16:03:45 +02:00
a-kenji
c6ec5b22c9
Merge pull request #468 from a-kenji/partial-unbind-modes
Add more Functionality to Unbind
2021-05-07 15:07:23 +02:00
Kunal Mohan
61e8d09151 hotfix(logging): let logging fail silently while testing 2021-05-07 16:50:58 +05:30
Kunal Mohan
2446aec82c hotfix(logging): fix atomic_create_file and make set_permissions() return an error 2021-05-07 15:42:00 +05:30
a-kenji
c7ad6d33ea !fixup Add more Functionality to Unbind
* Used the unbind
2021-05-07 10:54:35 +02:00
a-kenji
79a4f76e93 Add more Functionality to Unbind
The default keybinds can be unbound either for a specific mode, or for every mode.
It supports either a list of `keybinds`, or a bool indicating that every keybind
should be unbound:

```
keybinds:
    unbind: true
```
Will unbind every default binding.

```
keybinds:
    unbind: [ Ctrl: 'p']
```
Will unbind every default `^P` binding for each mode.
```
keybinds:
    normal:
        - unbind: true
```
Will unbind every default keybind for the `normal` mode.
```
keybinds:
    normal:
        - unbind: [ Alt: 'n', Ctrl: 'g']
```
Will unbind every default keybind for `n` and `^g` for the `normal` mode.
2021-05-07 10:51:35 +02:00
Kunal Mohan
d5433f8f89
Merge pull request #223 from zellij-org/isolate-pty
Psuedo Client-Server model
2021-05-06 22:11:07 +05:30
Kunal Mohan
7982636741 explicitly set file and directory permissions 2021-05-06 22:01:27 +05:30
Aram Drevekenin
837cb8d15a
fix(compatibility): pass vttest 8 (#461)
* fix(compatibility): pass vttest 8

* style(comment): remove unused

* style(grid): sometimes it's just easier to do what clippy wants...
2021-05-05 17:09:24 +02:00
Kunal Mohan
c1dd2c588e Fix after rebase 2021-05-04 20:48:28 +05:30
Kunal Mohan
585b225290 Use ZELLIJ_SOCKET_DIR env variable and make user specific tmp dir 2021-05-04 20:48:18 +05:30
Kunal Mohan
a05a12dbec Add version to socket path to avoid problems after version update 2021-05-04 20:48:17 +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
93956bdcca use bincode::deserialize_from() to prevent data loss. 2021-05-04 20:48:17 +05:30
Kunal Mohan
da9b6fd607 use BufRead and BufWrite with sockets 2021-05-04 20:48:17 +05:30
Kunal Mohan
3f70c585c2 nit fixes 2021-05-04 20:48:16 +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