Commit Graph

1303 Commits

Author SHA1 Message Date
Brooks J Rady
5e857a22e6 chore(plugin): update assets and E2E tests 2021-11-07 17:04:22 +00:00
a-kenji
21fb8a15eb docs(changelog): simplify the main.rs function 2021-11-05 23:03:19 +01:00
Ken Matsui
510feb3040
fix(main): Refactor src/main.rs by splitting one massive main function into 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
2021-11-05 22:59:45 +01:00
a-kenji
6e7f44a8e8 docs(changelog): add --index option for attach 2021-11-05 22:06:41 +01:00
a-kenji
72c58439b7 Merge branch 'ken-matsui-support-first-option-in-attach-subcommand-to-attach-the-first-session' 2021-11-05 22:03:30 +01:00
a-kenji
808458ec7b Merge branch 'support-first-option-in-attach-subcommand-to-attach-the-first-session' of https://github.com/ken-matsui/zellij into ken-matsui-support-first-option-in-attach-subcommand-to-attach-the-first-session 2021-11-05 21:57:01 +01:00
Ken Matsui
4acb2458d2
feat(attach): Support --index option to choose specific session by 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
2021-11-06 05:15:09 +09:00
a-kenji
b955dc6a4f docs(changelog): fix stray ' 2021-11-05 20:50:13 +01:00
a-kenji
82b5b3ab62 docs(changelog): use thiserror to simplify errors 2021-11-05 20:46:59 +01:00
Ken Matsui
f9cb23af65
fix(errors): Introduce thiserror to make error types simpler (#836) 2021-11-05 20:45:57 +01:00
a-kenji
c1cf7287ab docs(changelog): add colored crate for error fmt 2021-11-05 20:40:36 +01:00
Ken Matsui
8ef1d10df9
fix(errors): Add colored crate to replace primitive color formatting (#837) 2021-11-05 20:39:14 +01:00
Aram Drevekenin
6e5c8dc852
docs(changelog): non-directional resize 2021-11-05 09:30:35 +01:00
Henil Dedania
4ac9344085
feature(resize): Non directional resize (#520)
* feature(resize): Non directional resize

* Implement special cases

* fix resizing for panes that have `+` cross section

* fix resizing for panes that have `T` cross section

* fix panics

* Add Nondirection resize keys to plugin

* fix formatting

* fix: clippy warnings

* fix the last edge case

* implemented some of the suggested changes

* Remove helper function and elevate comment to top of function

* Use `=` to keep it consistent with Normal mode mapping as its easier to use

* Remove extra reference borrowing

* fix an edge case

* add test for nondirectional resize increase/decrease

* fix(controls): add + to resize

* refactor(resize): simplify methods

* fix(resize): properly resize opposite corner pane

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2021-11-05 09:29:45 +01:00
Aram Drevekenin
3e052519f9
docs(changelog): resize fix 2021-11-04 23:20:51 +01:00
Aram Drevekenin
23c9751346
fix(resize): do not ignore minimums when doing directional resizes (#838)
* fix(resize): do not ignore minimums when doing directional resizes

* style(fmt): make rustfmt happy
2021-11-04 23:19:38 +01:00
a-kenji
f62ccd2a5c
add: try_from for ConfigFromYaml -> Config (#835) 2021-11-03 19:58:40 +01:00
Aram Drevekenin
55c5b640ed
docs(changelog): update cwd fix 2021-11-03 18:02:06 +01:00
Aram Drevekenin
daa70022c9
fix(cwd): open pane in cwd even if default shell is explicit (#834)
* fix(cwd): open pane in cwd even if default shell is explicit

* style(fmt): make rustfmt happy
2021-11-03 17:59:28 +01:00
a-kenji
a83a8b9a96
chore(warnings): remove unused imports (#833) 2021-11-03 14:31:06 +01:00
Brooks Rady
b37b9e81cb
chore(docs): update changelog 2021-11-02 18:52:02 +00:00
Tw
9ea3dc0dbe
feat(ui): add right-click support to plugins 2021-11-02 18:49:10 +00:00
a-kenji
2904c04ab0 docs(changelog): colors_transform to colorsys 2021-11-02 11:47:49 +01:00
a-kenji
070de7a4d1
Fix: move colors_transform to colorsys (#832)
* `colors_transform` is deprecated and superceded by `colorsys`

  ref: https://crates.io/crates/colors-transform
2021-11-02 11:46:06 +01:00
Aram Drevekenin
7e9dc406bc
docs(changelog): forkpty => openpty 2021-11-01 22:03:22 +01:00
Aram Drevekenin
a14a2f6fb0
fix(unix): forkpty => openpty (#830)
* fix(unix): forkpty => openpty

* style(fmt): make rustfmt happy
2021-11-01 22:01:59 +01:00
a-kenji
043a3cf388 docs(changelog): add rust-version to Cargo.toml 2021-11-01 17:15:48 +01:00
a-kenji
35c566f15c
add: rust-version (msrv) field to Cargo.toml (#828)
* specifies the minimum version the package can be compiled with,
  may be ignored with `--ignore-rust-version` option

  ref: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
2021-11-01 17:14:28 +01:00
a-kenji
c39c27c98c docs(changelog): fix typo bug_report template 2021-11-01 13:23:35 +01:00
Ken Matsui
5e720b02a9
fix(docs): Fix a typo and some grammatical errors in bug_report.md (#826) 2021-11-01 13:20:59 +01:00
a-kenji
c3e361de22 docs(changelog): Add WriteChars action 2021-11-01 08:53:53 +01:00
a-kenji
d2b81293df
add: WriteChars action (#825)
* Behaves like the `Write` action, but one can specify
  strings themselves instead of their bytecodes.

  Usage:

  WriteChars: "cargo make test",
2021-11-01 08:52:55 +01:00
a-kenji
13f3e747e4 docs(changelog): fix unused import on darwin 2021-10-31 20:47:26 +01:00
Ken Matsui
f04a7a4ee7
fix(warning): Fix an unused import warning of std::fs on macos (#820) 2021-10-31 20:45:52 +01:00
a-kenji
0cfc5633d3 docs(changelog): update cargo-make for v0.35.3 2021-10-31 20:44:09 +01:00
Ken Matsui
b61489c218
fix(docs): fix wrong arguments for cargo make run given in CONTRIBUTING.md (#819) 2021-10-31 20:41:49 +01:00
a-kenji
954b432711 docs(changelog): fix a typo 2021-10-31 20:40:50 +01:00
Ken Matsui
f902f3ed1d
fix(typo): Correct typo from occured to occurred (#821) 2021-10-31 20:39:57 +01:00
Aram Drevekenin
03e62eb91c
docs(changelog): fix link 2021-10-30 10:56:50 +02:00
Aram Drevekenin
bbf88c63d3
docs(changelog): home end key fix 2021-10-29 15:29:44 +02:00
Aram Drevekenin
6d47d360e1
fix(compatibility): home and end key fix (#815)
* fix(compatibility): handle home/end keys properly from terminfo

* style(fmt): make rustfmt happy

* style(fmt): remove unused import
2021-10-29 15:28:36 +02:00
Aram Drevekenin
2ac1454ec0
docs(changelog): scroll fix 2021-10-29 12:23:49 +02:00
Aram Drevekenin
42b66644ae
fix(performance): do not hang when resizing large line wraps (#814)
* fix(performance): do not hang when resizing large line wraps

* style(fmt): make rustfmt happy

* style(clippy): make clippy happy
2021-10-29 12:22:30 +02:00
Aram Drevekenin
14df486353
docs(changelog): bracketed paste fix 2021-10-27 19:22:26 +02:00
Aram Drevekenin
21e5ffdfd8
fix(input): properly handle bracketed paste (#810)
* fix(input): properly handle bracketed paste

* style(fmt): make rustfmt happy
2021-10-27 19:20:43 +02:00
Brooks Rady
3b1dd1253a
chore(docs): update changelog 2021-10-26 18:49:01 +01:00
Brooks Rady
6bb1ec6636
fix(perf): plugins are only compiled once 2021-10-26 18:43:17 +01:00
Aram Drevekenin
70acfe74f2
docs(changelog): wide char midline fix 2021-10-26 16:46:58 +02:00
Aram Drevekenin
685b51efbb
fix(compatibility): improve handling of wide characters inserted in the middle of existing lines (#806)
* fix(compatibility): handle wide characters inserted in line middle

* fix(compatibility): more wide char handling

* style(fmt): make rustfmt happy

* style(fmt): make clippy happy

* style(fmt): make clippyt happy

* style(fmt): make rustfmt happy... again
2021-10-26 16:43:56 +02:00
Kunal Mohan
829882d556 docs(changelog): Rotate Pane locations (#802) 2021-10-26 09:56:37 +05:30