zellij/zellij-utils/src/input
a-kenji bd8c834d7c
fix(options): handling and overwriting cli opts (#859)
* 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'
  ```
2021-11-11 17:13:34 +01:00
..
unit feat: add initial session name to layout template (#789) 2021-11-08 19:43:51 +01:00
actions.rs feat(scrolling): half-page scroll actions (#813) 2021-11-08 15:05:47 +01:00
command.rs feat(cwd-pane): Keeping the cwd when opening new panes (#691) 2021-09-10 17:35:06 +02:00
config.rs fix(errors): Introduce thiserror to make error types simpler (#836) 2021-11-05 20:45:57 +01:00
keybinds.rs fix(compatibility): home and end key fix (#815) 2021-10-29 15:28:36 +02:00
layout.rs feat: add initial session name to layout template (#789) 2021-11-08 19:43:51 +01:00
mod.rs fix(envs): Unify operation of Zellij environment variables (#842) 2021-11-10 09:02:17 +01:00
mouse.rs feat(ui): initial mouse support (#448) 2021-07-02 16:40:50 +02:00
options.rs fix(options): handling and overwriting cli opts (#859) 2021-11-11 17:13:34 +01:00
plugins.rs fix(errors): Introduce thiserror to make error types simpler (#836) 2021-11-05 20:45:57 +01:00
theme.rs Add color theme config 2021-05-30 15:07:21 +02:00