zellij/zellij-utils/src
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
..
input fix(options): handling and overwriting cli opts (#859) 2021-11-11 17:13:34 +01:00
channels.rs refactors for #525 (#534) 2021-05-27 16:28:28 +02:00
cli.rs add(feature): toggle boolean options with cli flag (#855) 2021-11-10 13:31:37 +01:00
consts.rs fix(envs): Unify operation of Zellij environment variables (#842) 2021-11-10 09:02:17 +01:00
envs.rs fix(envs): Unify operation of Zellij environment variables (#842) 2021-11-10 09:02:17 +01:00
errors.rs feat(scrolling): half-page scroll actions (#813) 2021-11-08 15:05:47 +01:00
ipc.rs feat(attach): Support --index option to choose specific session by provided number in active sessions ordered by creation date, resolve #823 2021-11-06 05:15:09 +09:00
lib.rs fix(envs): Unify operation of Zellij environment variables (#842) 2021-11-10 09:02:17 +01:00
logging.rs logging: remove unused log functions, change log file const to new file (#779) 2021-10-18 10:52:58 +02:00
pane_size.rs feat(ui): overhauled resize and layout systems 2021-08-28 17:46:24 +01:00
position.rs feat(ui): overhauled resize and layout systems 2021-08-28 17:46:24 +01:00
setup.rs fix(options): handling and overwriting cli opts (#859) 2021-11-11 17:13:34 +01:00
shared.rs feat(attach): Support --index option to choose specific session by provided number in active sessions ordered by creation date, resolve #823 2021-11-06 05:15:09 +09:00