Commit Graph

1378 Commits

Author SHA1 Message Date
Kunal Mohan
0ed8f06b9f
Prevent a zellij session from attaching to itself. (#911)
* fix #905
Prevent a zellij session from attaching to itself.

* Add check while attaching using index as well
2021-11-30 17:31:05 +05:30
a-kenji
5180d8016f docs(changelog): formatting 2021-11-30 11:34:01 +01:00
a-kenji
77ef8aaa8c docs(changelog): add gray to themes section 2021-11-30 11:04:23 +01:00
a-kenji
adee5e78a9
fix(theme): add gray to theme (#914)
fix #912

* Add `gray` to theme
2021-11-30 11:03:20 +01:00
a-kenji
798a57e535 docs(changelog): fix missing theme on config merge 2021-11-30 09:48:51 +01:00
Tw
d7e460a3d6
Fix: missing theme in config (#913)
Signed-off-by: Tw <wei.tan@intel.com>
2021-11-30 09:46:48 +01:00
Joseph Post
485b9e4f98
fix: Update CONTRIBUTING.md (#909)
added a newline to fix URLs
2021-11-30 08:01:24 +01:00
Aram Drevekenin
1ee743156c chore(version): bump development version 2021-11-29 10:09:22 +01:00
Aram Drevekenin
eec8dbf7ec chore(release): v0.21.0 2021-11-29 09:35:48 +01:00
Aram Drevekenin
7722a21248 chore(build): update plugins 2021-11-29 09:16:12 +01:00
Brooks J Rady
7cb165f0c2 fix(style): remove unused imports 2021-11-27 15:35:37 +00:00
a-kenji
1725075cbb docs(changelog): add zellij version to plugin api 2021-11-26 10:46:14 +01:00
Jae-Heon Ji
c349586d84
feat: provide the zellij version to plugins (#894)
* feat: add draft of feature

* feat(wasm): add plugin API for getting of zellij version

* feat(wasm): update feedback

* delete unnecessary function
2021-11-26 10:44:43 +01:00
a-kenji
cbae0213db
update(readme): update matrix link to new room (#903) 2021-11-26 10:15:10 +01:00
a-kenji
7154fd0de7
add: badge for matrix chat (#902) 2021-11-25 21:19:31 +01:00
dependabot[bot]
1cd21bf899
chore(deps): bump actions/upload-release-asset from 1.0.1 to 1.0.2 (#901)
Bumps [actions/upload-release-asset](https://github.com/actions/upload-release-asset) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/actions/upload-release-asset/releases)
- [Commits](https://github.com/actions/upload-release-asset/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: actions/upload-release-asset
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-25 18:40:15 +01:00
a-kenji
d3505ba52b
feat(update): integrate dependabot for gh actions (#900)
* dependabot will check weekly, if the gh actions have new versions
  available and will open a pr, if necessary
2021-11-25 17:44:18 +01:00
Aram Drevekenin
10ced5a3cd
docs(changelog): multi user ui for panes 2021-11-25 16:23:54 +01:00
Aram Drevekenin
6c6a4393f4
This adds a UI for multiple users in panes (behind a feature flag) (#897)
* feat(ui): multiple users in panes

* style(fmt): make rustfmt happy

* style(fmt): make clippy happy
2021-11-25 16:21:59 +01:00
a-kenji
9fb2c7ca16 add: leave ephemeral modes by pressing esc 2021-11-23 12:45:02 +01:00
a-kenji
cd55c86260
Feat: add esc to exit modes (#889)
* Add ability to return to normal mode from any mode,
  except for the locked mode, by pressing the escape key
  to the default keybindings

  fix #887
2021-11-23 12:42:15 +01:00
Thomas Linford
d05878315f
docs(changelog): osc8 support 2021-11-22 18:57:01 +01:00
Thomas Linford
a96b9d8769
feat(compatibility): add support for osc 8 escape code (#822)
Resolve #645 

* add support for osc 8 escape code

* refactor, add links to CharacterStyles

* cleanup

* refactor, add minimal tests
2021-11-22 18:54:49 +01:00
Thomas Linford
d8959ca6e1
docs(changelog): large scrollback performance fix 2021-11-22 18:38:47 +01:00
Thomas Linford
707fedd1df
fix(performance): keep track of scrollback buffer size (#881)
Fix #877. Avoid calculating scrollback buffer size on each render, since the calculation becomes slower proportionally to the amount of lines buffered, and to the width of each line.
* wip: keep track of scrollback buffer size

* account for lines dropped by bounded_push

* fix: use saturating sub

* fix: account for 0 width lines

* remove log messages
2021-11-22 18:34:45 +01:00
a-kenji
639566df15
docs(readme): update new command syntax (#876) 2021-11-17 10:42:44 +01:00
a-kenji
198950e0b9
add(overlay): add overlay (#875)
* add overlay instructions to the `render` function

  this is a continuation of #871
2021-11-17 00:12:34 +01:00
a-kenji
4eee6cae00 docs(changelog): init first overlay changes 2021-11-15 20:14:03 +01:00
a-kenji
b861baa6a1
First attempt to provide an overlay prompt (#871) 2021-11-15 20:13:05 +01:00
a-kenji
55aef0aeec docs(changelog): add initial zellij.desktop file 2021-11-15 17:28:09 +01:00
a-kenji
9c6e261e33
add(assets): init zellij.desktop file (#870) 2021-11-15 17:27:32 +01:00
a-kenji
f6813df0e8
fix(typo): fix setup --check (#869) 2021-11-15 14:41:19 +01:00
a-kenji
94582d4255 docs(changelog): add THIRD_PART_INSTALL.md 2021-11-15 09:08:26 +01:00
Jae-Heon Ji
c35a6ba938
doc: add INSTALL.md (#857)
* doc: add INSTALL.md

* doc(install): add warning phrase

* doc(install): fix syntax

* doc(install): change the install doc to be for third party
2021-11-15 09:06:13 +01:00
Thomas Linford
851bc863c1
docs(changelog): refactor character style diff 2021-11-15 08:35:36 +01:00
Thomas Linford
0ba8e2f7b4
Simplify terminal character style diff (#839)
* optimize EMPTY_TERMINAL_CHARACTER diff

return a diff for EMPTY_TERMINAL_CHARACTER only when necessary (when new_styles different than current), so to avoid
emitting a ansi reset code every time.

* simply character styles diffing logic
2021-11-15 08:31:53 +01:00
a-kenji
93014f6fd7
fix(typo): e2e test (#867) 2021-11-14 23:01:18 +01:00
a-kenji
5458c5624b docs(changelog): add config through layouts 2021-11-14 23:00:34 +01:00
a-kenji
347e02ea35
feature(layout): add layout config (#866)
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
```
2021-11-14 22:58:20 +01:00
Thomas Linford
96315ed332
docs(changelog): refactor close_pane 2021-11-13 21:55:33 +01:00
Thomas Linford
44852cd6b2
refactor(tab): close_pane returns closed pane (#853)
* refactor(tab): close_pane returns closed pane

Prepare for break pane command by making close_pane return the closed
pane. Also split the function up to hopefully be more readable.

* more refactoring
2021-11-13 21:51:53 +01:00
Aram Drevekenin
ce3109ee7e
docs(changelog): tab multi-users 2021-11-12 17:24:22 +01:00
Aram Drevekenin
bd795a3e9f
refactor(tabs): lay down infrastructure for multiple users (#864)
* refactor(screen): support multiple mirrored clients

* style(fmt): make rustfmt happy

* style(clippy): make clippy happy

* whitespace

* github, y u no update CI?!

* is this a cache issue?

* is it the checkout cache?

* no cache at all?

* Debug

* fix gototab

* decoment

* gototab none in wasm_vm

* gototab none in wasm_vm

* the fun never ends

* tests(e2e): update infra and add multiple user mirroring test

* refactor(tab): change structs in tabs and terminal panes to support multiple users

* style(fmt): make rustfmt happy

* style(fmt): make clippy happy
2021-11-12 17:22:14 +01:00
Thomas Linford
3e07040808
doc(changelog): CSI cursor next line fix 2021-11-11 21:30:14 +01:00
Thomas Linford
8a4161ee5b
fix(compatibility): CSI cursor next line fix (#863)
Move cursor to beginning of line after moving it down.

fixes #860.
2021-11-11 21:24:59 +01:00
a-kenji
db452577ba docs(changelog): suggest similar session name 2021-11-11 18:30:45 +01:00
a-kenji
f1ae83df8c Merge branch 'ken-matsui-suggestion-for-similar-session-name' 2021-11-11 18:28:54 +01:00
a-kenji
be692fd6b0 Merge branch 'suggestion-for-similar-session-name' of https://github.com/ken-matsui/zellij into ken-matsui-suggestion-for-similar-session-name 2021-11-11 18:27:55 +01:00
a-kenji
59ca0babaf docs(changelog): overwriting options on cli 2021-11-11 17:17:49 +01:00
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