aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.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(main): Refactor src/main.rs by splitting one massive main function into ↵Ken Matsui2021-11-05
| | | | | | | commands.rs (#829) * fix(main): Remove unnecessary pub visibility from the main function in `src/main.rs` * fix(main): Avoid unnecessary if-evaluations in the main function of `src/main.rs` * fix(commands): Simplify kill_all_sessions
* feat(attach): Support `--index` option to choose specific session by ↵Ken Matsui2021-11-06
| | | | | | | | | | | | | | | | provided number in active sessions ordered by creation date, resolve #823 feat(attach): Support `--first` option for `attach` sub-command to let zellij choose the alphabetically first session; resolve #823 fix(attach-first): Fix `--first` option to choose the first created session in the existent sessions feat(attach): Support `--index` option to choose the session indexed by provided number like -t option of tmux feat(attach): Support listing active sessions with index when a provided number is not found in the active sessions feat(attach): Support listing active sessions with index when a provided number is not found in the active sessions feat: Add anyhow to uniformly treat error types and avoid panics
* Preserve current umask (#777)Thomas Linford2021-10-12
| | | | | * preserve umask when starting server * make sure log files are created with explicit permissions
* feat(cli): add `kill-session` command (#745)Jae-Heon Ji2021-10-11
| | | | | | | | | | | | | | | | | | | | | | * feat: add kill-session command * style: apply formatting rules * feat: add new instruction for kill-session * feat: update feedback of kill-session * separation of command `kill-session` and `kill-all-sessions` function. * Add information to various situations * Add a question (yes or no) when executing the `kill-all-sessions` command. * chore: adjust clippy warning * fix warning wording * make rustfmt happy Co-authored-by: Aram Drevekenin <aram@poor.dev>
* feat(sessions): mirrored sessions (#740)Aram Drevekenin2021-09-27
| | | | | | | | | | | | | | | | | * feat(sessions): mirrored sessions * fix(tests): input units * style(fmt): make rustfmt happy * fix(tests): make mirrored sessions e2e test more robust * refactor(sessions): remove force attach * style(fmt): rustfmtify * docs(changelog): update change * fix(e2e): retry on all errors
* Implement `attach --create` subcommand flag to create session if one does ↵GPery2021-09-19
| | | | | | | | | | | | | not exist (#731) * Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create * fixup! Implement attach --create
* Add `options` subcommand to `attach` (#718)a-kenji2021-09-13
| | | | | | | | | | | | | | | | | | | fixes #688 - the `options` subcommand of `attach` functions the same, as the `options` subcommand of creating the normal session, but not every option will have an effect on reattaching, for example the `default_mode` setting would make no sense to switch. In the future it would make sense to be able to hot swap some of the options on reattach, but we are not able to do that yet, for example the `default_shell` one. Eg: ``` zellij attach <session-name> options --theme <theme> ```
* fix automated build errors on setup command (#711)Thomas Linford2021-09-12
| | | - handle opts before client os input setup
* 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.
* | Merge branch 'main' of https://github.com/zellij-org/zellij into tab-layouta-kenji2021-07-23
|\|
| * 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]`
| * Minor fixesPaweł Palenica2021-07-17
| |
| * Apply code review suggestions. Rename decorating_pipe to logging_pipe. Add ↵Paweł Palenica2021-07-13
| | | | | | | | plugin_id to plugin log. Move logger init from file to in-code initialization and change logging file to zellij directory. Change format of timestamp.
| * Merge branch 'main' into unified-loggingqepasa2021-07-08
| |\
| * | feat: Add logger to ZellijPaweł Palenica2021-06-29
| | | | | | | | | | | | | | | | | | We add log4rs create for logging across Zellij. Additionally, we capture `stderr` output from plugins and log it the same log file as other Zellij logs.
* | | Add `tabs` to `layouts`a-kenji2021-07-23
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #603, fixes #349 * The layout has now a unique `tabs` section, that can be used, like the `parts` section, everything that is not inside the tabs section is assumed to be present on every single tab that is opened. This is a BREAKING CHANGE for people that use custom `layouts` already, since the `tabs` section is not optional - for clarity and intentionality reasons. The functionality to specify multiple tabs is already there, but is still gated behind a panic, until #621 is fixed. So for now one tab can be specified to load on startup. * The `NewTab` action can optionally be bound to open a layout that is assumed to be in the new `tabs` section This is a BREAKING CHANGE for people that have the `NewTab` action already bound in the config file: ``` - action: [NewTab, ] key: [F: 5,] ``` must now be specified as: ``` - action: [NewTab: ,] key: [F: 5,] ``` Optionally a layout that should be opened on the new tab can be specified: ``` - action: [NewTab: { direction: Vertical, parts: [ {direction: Horizontal, split_size: {Percent: 50}}, {direction: Horizontal, run: {command: {cmd: "htop"}}},], key: [F: 6,] ``` or: ``` - action: [NewTab: {direction: Vertical, run: {command: {cmd: "htop"} }},] key: [F: 7,] ``` or ``` - action: [NewTab: { direction: Vertical, parts: [ {direction: Vertical, split_size: {Percent: 25},run: {plugin: "strider" }}, {direction: Horizontal}],}, MoveFocus: Left,] key: [F: 8,] ```
* | Add `layout-dir` to `setup --check` subcommanda-kenji2021-07-04
|/
* 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 `layout.rs` from `server` to `utils`a-kenji2021-06-14
| | | | * give feedback on most errors in the layout-file
* Add default_mode to attacha-kenji2021-05-29
| | | | | * Attaching a new session now also respects the default_mode setting of the client
* Make session-name option in attach commandKunal Mohan2021-05-29
| | | | | If only one session is running, attach to it. Otherwise list the active sessions (if any)
* hotfix(publish): Move install module and asset_map to main zellij package. ↵Kunal Mohan2021-05-27
| | | | publish should hopefully work now.
* rename list_sessions file to sessionsKunal Mohan2021-05-22
|
* Allow user to specify session nameKunal Mohan2021-05-22
|
* check if session exists before attachingKunal Mohan2021-05-22
|
* Add ability to attach to sessionsKunal Mohan2021-05-22
|
* Add ability to detach a sessionKunal Mohan2021-05-22
|
* Mark current session in the output of list-sessionsKunal Mohan2021-05-22
|
* Implement the minimal list-sessions commandKunal Mohan2021-05-22
|
* add attach and list sessions subcommand to CliArgsKunal Mohan2021-05-22
|
* Merge pull request #522 from zellij-org/re-export-dependenciesKunal Mohan2021-05-19
|\ | | | | Re-export common dependencies from zellij-utils
| * Re-export common dependencies from zellij-utilsKunal Mohan2021-05-19
| |
* | 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
|
* handle error on termios initialization (#511)Thomas Linford2021-05-16
|
* clean and exit on window closeKunal Mohan2021-05-15
|
* Do not pass config_options while spawning server processKunal Mohan2021-05-15
|
* Fix after rebaseKunal Mohan2021-05-15
|
* fix testingKunal Mohan2021-05-15
|
* Switch to multiprocess model: Not looking goodKunal Mohan2021-05-15
|
* Add `check` flag to the setup subcommanda-kenji2021-05-14
| | | | | | | | * The check option communicates default and config options to the user as well as optional compile time features * Move generate-completion from a subcommand to a flag in the setup subcommand
* Fix Simplified Uia-kenji2021-05-12
| | | | | Propagate the config now, in all the places, as opposed to fallback to a default.
* Fix exit code on `dump-default-config`a-kenji2021-05-10
|
* First round of merging against server-client and color stuffKyle Sutherland-Cash2021-05-08
|
* Use ZELLIJ_SOCKET_DIR env variable and make user specific tmp dirKunal Mohan2021-05-04
|
* Fix after rebaseKunal Mohan2021-05-04
|
* remove Split, OpenFile and MoveFocus from CliArgsKunal Mohan2021-05-04
|
* Use interprocess crate for IPCKunal Mohan2021-05-04
|