Commit graph

89 commits

Author SHA1 Message Date
denis
d48cc81536 fix: don't have new on ColoredElements anymore, removed default for palette in zellij-tile 2021-05-02 12:25:49 +03:00
denis
452940fb65 Merge branch 'main' into x-colors 2021-05-02 11:59:20 +03:00
Yutaka Kamei
168deabea7
Load config before start()
Previously, a config file was loaded within `start()`, and if the config
file is invalid, Zellij was supposed to show a user what's wrong with
it. However, since `start()` starts setting up its terminal with an
alternative screen buffer, neither standard output nor standard error
could display such an error.

This change intends to address this issue by making Zellij load a config
file before `start()`.

In addition, the patch also includes some refactorings:

* Redefine `from_cli_config` with `TryFrom`, which was introduced in
  Rust 1.34
* Remove conditional declaration `cfg(not(test))` because `start()` now
  receive a `Config` as the third argument
* Introduce [`tempfile`](https://crates.io/crates/tempfile) in order to
  run tests with actual files
* Typo?: "Deserialisation" -> "Deserialization"
2021-05-02 06:18:40 +09:00
Kyle Sutherland-Cash
69d34c3e09 Don't commit to master like an idiot... :( 2021-05-01 09:32:30 -07:00
Kyle Sutherland-Cash
2eadcb86a5 Bit of renaming 2021-05-01 09:22:21 -07:00
Kyle Sutherland-Cash
e7d8aefa79 Simplify some names and start using Bus in the plugin thread 2021-05-01 09:11:22 -07:00
Kyle Sutherland-Cash
bb2369dcb8 Use Bus type for PTY thread (incomplete) 2021-05-01 08:48:58 -07:00
Kyle Sutherland-Cash
ae6192d698 Use Bus type for screen thread 2021-05-01 08:26:57 -07:00
Kyle Sutherland-Cash
f01887463f Define shared bus type 2021-05-01 08:26:31 -07:00
denis
f85822972a chore: cleanup, fix: the tests finally pass 2021-05-01 14:44:43 +03:00
denis
eabecde90b chore: painless merge this time 2021-05-01 13:45:01 +03:00
a-kenji
153119de02 Fix Startup with Default in Same Folder
Doesn't try loading `default` files, other than
the plugin directory by default anymore.
2021-04-29 18:00:55 +02:00
Dante Pippi
62662464e3 Including text on tab name to let users know sync is on. 2021-04-28 11:16:06 -03:00
Dante Pippi
6769627c36 cargo fmt 2021-04-28 11:16:06 -03:00
Dante Pippi
1a84c5f4ec New feature: Synchronize text sent to panes 2021-04-28 11:15:58 -03:00
a-kenji
55d2a4cea9 Merge branch 'main' of https://github.com/zellij-org/zellij into config-loading 2021-04-27 21:40:13 +02:00
a-kenji
77e0b5e0d7 Config Loading
* Configuration is now handled in this order:
 --config flag
 ZELLIJ_CONFIG_FILE env
 get_default_config_dir() (directories-next)
 HOME/.config/zellij (for mac convenience)
 SYSTEM_DEFAULT_CONFIG_DIR (for distributions to specify sensible
 defaults ontop of zellij)
 from assets

* Fix default.yaml file

* Move default.yaml file to assets directory
2021-04-27 21:38:26 +02:00
Brooks J Rady
e163bd56e7 feat(plugin): simple timers implemented via the set_timeout() call 2021-04-27 17:13:25 +01:00
Brooks J Rady
3d926d6c03 feat(plugin): come back to this commit if you need high-performance timers 2021-04-27 16:05:01 +01:00
Brooks J Rady
2814c30272 feat(plugin): added the get_plugin_ids() query function 2021-04-27 14:57:54 +01:00
denis
de72d3d2fb wip: tab bar coloring 2021-04-24 11:42:40 +03:00
denis
ae3537957b wip: new build?" 2021-04-22 12:10:41 +03:00
denis
8d98ca7da0 wip: merge main in 2021-04-22 11:45:29 +03:00
Brooks Rady
19fc0496a3
feat(actions): allow scrolling by full pages
PR #298
2021-04-22 00:25:43 +01:00
a-kenji
8823bef7c1 Add ZELLIJ Environment Varable on startup(#304)
Makes it easy and flexible to check
whether zellij is already running.

This carries no further information
for now and is initialised to `0`.

closes 304.
2021-04-21 15:26:05 +02:00
a-kenji
2c12e8ff83 Change Config To Flag (#290)
This changes the `config` subcommand to a config flag.

Add option subcommand for now, for the clearing of default path.

Add `ZELLIJ_CONFIG` environment variable.

The configuration locations are now as follows:
    * `--config` flag
    * `ZELLIJ_CONFIG` environment variable
    * default config location
in that order.
2021-04-21 09:03:46 +02:00
Hongjie Zhai
fad088a868 add scroll page 2021-04-21 14:27:58 +09:00
Brooks J Rady
af702b67e6 feat(build): vastly simplify the build system 2021-04-14 19:08:22 +01:00
denis
e5526df46a Merge branch 'main' into x-colors 2021-04-13 11:30:54 +03:00
Kunal Mohan
6b643badc5 doc fixes 2021-04-12 20:33:22 +05:30
Kunal Mohan
870d6d02b5 restore terminal snapshot on panic 2021-04-12 20:33:22 +05:30
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
denis
748a7ffa6e wip: cleaning up a bit, need to map the colors to the right places in the palette 2021-04-09 14:14:50 +03:00
denis
7774edd45a wip: need to figure out how to clear lines 2021-04-08 16:29:52 +03: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
e551bec538
fix(screen): handle events directed at other tabs (#257) 2021-04-06 16:55:32 +02:00
a-kenji
4f5f189373 Merge branch 'main' of https://github.com/zellij-org/zellij into config-file 2021-04-03 21:19:39 +02:00
denis
a6ad8e6f15 wip: sending the ModeInfo on initial plugin load 2021-04-02 11:24:13 +03: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
denis
b8ee02d4bb wip: does it take too long to load colors from xrdb? 2021-03-31 14:32:54 +03:00
Brooks J Rady
138ba850eb fix(plugin): send mode updates to subscribed plugins on load 2021-03-31 12:13:00 +01:00
denis
42890d4e64 wip: replace the impl with a fn load_palette instead 2021-03-28 10:51:15 +03:00
denis
6e276ae386 wip: move Palette out of zellij-tile 2021-03-27 15:30:53 +02:00
denis
b71315b036 wip: latest plugin system merge in 2021-03-27 14:43:16 +02:00
a-kenji
84488a35aa Merge branch 'main' of https://github.com/zellij-org/zellij into config-file 2021-03-26 23:33:36 +01:00
denis
2c402b0b1d wip: scary how messy it is, but it's a start 2021-03-26 16:42:38 +02:00
Brooks J Rady
b6f945da35 Wrap up the plugin system refactor, running everything through update() 2021-03-25 17:22:10 +00:00
denis
a35cade8de wip: reading colors from xrdb 2021-03-25 18:05:16 +02:00
Brooks J Rady
84a5cf95d1 Converted tab updates to the new generic update() function 2021-03-25 15:51:39 +00:00