aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/setup.rs (follow)
Commit message (Collapse)AuthorAge
...
* chore(deps): update arg parsing to clap v3 (#1017)Marcin Puc2022-01-23
| | | | * Update arg parsing to clap v3 * Ignore shell argument case
* fix(style): various internal refactoringsMarcin Puc2021-12-07
|
* fix(style): remove unused importsBrooks J Rady2021-11-27
|
* fix(typo): fix setup --check (#869)a-kenji2021-11-15
|
* feature(layout): add layout config (#866)a-kenji2021-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | feature(layout): add layout config (#866) * It is now possible to configure zellij through a layout: The config file and the layout file will be merged, on conflicting options the order is as follows: 1. config options `zellij options` 2. layout 3. config Example: ``` --- template: direction: Horizontal parts: - direction: Vertical body: true - direction: Vertical borderless: true split_size: Fixed: 1 run: plugin: location: "zellij:tab-bar" default_shell: fish ```
* fix(options): handling and overwriting cli opts (#859)a-kenji2021-11-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(options): handling ond verwriting cli opts * previously it was only possible to turn off certain features with a command line option, now it is possible to also overwrite this behavior in a sane way, for that some breaking changes happened: following options got renamed and inverted: ``` disable_mouse_mode -> mouse_mode no_pane_frames -> pane_frames ``` following cli options got added: ``` mouse-mode [bool] pane-frames [bool] simplified-ui [bool] ``` the following cli flag got removed: ``` simplified-ui ``` They can be specified in the following way: ``` zellij options --mouse-mode true ``` in order to enable the mouse mode, even if it is turned off in the config file: ``` mouse_mode: false ``` The order is now as follows: 1. corresponding flag (`disable-mouse-mode`) 2. corresponding option (`mouse-mode`) 3. corresponding config option (`mouse_mode`) * add: options and flags for the same value conflict * example: ``` zellij options --mouse-mode true --disable-mouse-mode` ``` ``` $ error: The argument '--mouse-mode <mouse-mode>' cannot be used with '--disable-mouse-mode' ```
* add(setup): change the links to be hyperlinks (#768)a-kenji2021-10-25
| | | | | - change the links in the setup command to be viable hyperlinks according to: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
* fix(setup): switch setup order (#765)a-kenji2021-10-05
| | | | - commands that don't use the config file now wont throw an error on malformed config files
* feat(plugin): add manifest to allow for plugin configuration (#660)spacemaison2021-09-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(plugins-manifest): Add a plugins manifest to allow for more configuration of plugins * refactor(plugins-manifest): Better storage of plugin metadata in wasm_vm * fix(plugins-manifest): Inherit permissions from run configuration * refactor(plugins-manifest): Rename things for more clarity - The Plugins/Plugin structs had "Config" appended to them to clarify that they're metadata about plugins, and not the plugins themselves. - The PluginType::OncePerPane variant was renamed to be just PluginType::Pane, and the documentation clarified to explain what it is. - The "service" nomenclature was completely removed in favor of "headless". * refactor(plugins-manifest): Move security warning into start plugin * refactor(plugins-manifest): Remove hack in favor of standard method * refactor(plugins-manifest): Change display of plugin location The only time that a plugin location is displayed in Zellij is the border of the pane. Having `zellij:strider` display instead of just `strider` was a little annoying, so we're stripping out the scheme information from a locations display. * refactor(plugins-manifest): Add a little more documentation * fix(plugins-manifest): Formatting Co-authored-by: Jesse Tuchsen <not@disclosing>
* Split tab-layout into `template` & `tabs` sectiona-kenji2021-08-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * adjust example layouts and move them from `./example` to `./example/layouts` * simplify the deserialization of the layout * layouts are now constructed as follows: ``` --- template: direction: Horizontal parts: - direction: Vertical borderless: true split_size: Fixed: 1 run: plugin: tab-bar - direction: Vertical body: true # <== The body section specifies the position of the # inserted tab - direction: Vertical borderless: true split_size: Fixed: 2 run: plugin: status-bar tabs: - direction: Vertical - direction: Vertical ```
* Add `template` section in `layout` filea-kenji2021-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | It works as follows: ``` --- template: direction: Horizontal parts: - direction: Vertical split_size: Fixed: 1 run: plugin: tab-bar - direction: Vertical body: true - direction: Vertical split_size: Fixed: 2 run: plugin: status-bar tabs: - direction: Vertical ``` The tabs are created in the body section of the template.
* Change layout panics to errorsa-kenji2021-08-02
| | | | * Adjust and add tests for the change
* Merge branch 'main' of https://github.com/zellij-org/zellij into tab-layouta-kenji2021-08-01
|\
| * Simplify deserialization for layouts, configa-kenji2021-07-28
|/ | | | | | | Simplify deserialzation for layouts, config and config options. Move the logic responsible to `Setup::from_options()` in order to be able to parse `main.rs` as well as adding new command easier.
* Add cmd to dump layout to stdouta-kenji2021-07-22
| | | | | | | | | | | | | Adds the ability to dump the default layouts to stdout, similar to the `zellij setup --dump-config`, but now it needs the name of a currently existing layout: - default - strider - disable-status `zellij setup --dump-layout [LAYOUT]`
* Add custom function for unit test in zellij-utilsKunal Mohan2021-07-06
|
* Remove test feature and hacksKunal Mohan2021-07-06
|
* Add `layout-dir` to `setup --check` subcommanda-kenji2021-07-04
|
* chore(clippy): needless_borrowa-kenji2021-06-29
|
* Change `layout` directory from `data` to `config`a-kenji2021-06-16
| | | | | | | | | | | | | | | | | | * default layouts won't be installed by anymore, instead they will be directly loaded * `layout-dir` is now a subdirectory of the `config-dir` by default, instead of the `data-dir` POSSIBLE BREAKING CHANGE: In case of having custom layouts in the previous `layout-dir` one can switch either the layouts to the new dir, or set the `layout-dir` to be the current `layout-dir` * it is possible to change the location of the `layout-dir`: - `zellij options --layout-dir [LAYOUR_DIR]` - `layout_dir: [LAYOUT_DIR]`
* Move `config` assets to `zellij-utils` cratea-kenji2021-05-27
| | | | | | * The assets macro seems to not be able to read across create boundaries. Now the assets are included in the crate they are used in.
* hotfix(publish): Move install module and asset_map to main zellij package. ↵Kunal Mohan2021-05-27
| | | | publish should hopefully work now.
* Change Description of Config Flagsa-kenji2021-05-22
| | | | | * Make distinction clearer between certain flags
* Fix `clean` flaga-kenji2021-05-18
| | | | | | | * The setup subcommand was exiting the programm no matter what even if the `clean` flag was provided. Now it returns to the main function on encountering the clean flag.
* Big refactor: separate crates for client, server and utilitiesKunal Mohan2021-05-16