Commit Graph

2849 Commits

Author SHA1 Message Date
Aram Drevekenin
9885664fa4
feat(plugins): allow plugins to specify own_url in pipe destination (#3232) 2024-03-28 15:36:28 +01:00
Aram Drevekenin
2908d2fcef
style(fmt): remove plugin compilation warnings (#3231) 2024-03-28 14:29:18 +01:00
Aram Drevekenin
1f9dfdfb76
docs(changelog): close_self plugin API 2024-03-27 20:25:31 +01:00
Aram Drevekenin
9d2e7fe2c1
feat(plugins): add api to close current plugin instance (#3228) 2024-03-27 20:24:18 +01:00
Aram Drevekenin
c83b6cc38d
docs(changelog): plugin serialization fix 2024-03-27 11:54:11 +01:00
Axel H
a54a7ea2bd
fix(plugins): session layouts are still serialized using the legacy plugin syntax (remote:) (#3224)
* fix(plugins): session layouts were still serialized using the legacy plugin syntax (remote:)

* use example domain

* style(fmt): rustfmt

---------

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2024-03-27 11:53:26 +01:00
Aram Drevekenin
fc1026dff0
chore(readme): add sponsor 2024-03-27 09:18:29 +01:00
Aram Drevekenin
ecefe1e6ee
docs(changelog): dump layout API 2024-03-26 18:45:57 +01:00
Aram Drevekenin
2eaa50cc44
feat(plugins): add api to dump the current session layout to a plugin (#3227) 2024-03-26 18:44:56 +01:00
Aram Drevekenin
b24dd87b80
docs(changelog): ui fixes 2024-03-26 16:38:36 +01:00
Aram Drevekenin
631ffd9bc4
fix(ui): session manager UI fixes (#3226)
* fix(ui): display new session folder prompt always

* fix(ui): truncate session name and error on too long a name

* fix(ui): scrolling layout list in welcome screen

* style(fmt): rustfmt
2024-03-26 16:37:42 +01:00
Aram Drevekenin
69835df5fc
docs(changelog): binding ctrl space 2024-03-26 12:13:40 +01:00
Ido Yariv
03e8a9398a
fix(keybindings): add support for binding Ctrl-Space (#3101)
* Add support for binding Ctrl-@

On most terminals, typing Ctrl-@ results in a null character with no
modifier.

Moreover, Ctrl-Space is commonly mapped as an alias for Ctrl-@, making
it easier to bind it as well.

* style(fmt): rustfmt

---------

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2024-03-26 12:12:58 +01:00
Aram Drevekenin
71ac381a21
docs(changelog): ctrl/alt F key modifiers 2024-03-25 15:06:08 +01:00
Bradford Hovinen
312817fcf6
fix(config): add support for Ctrl and Alt modifiers on function keys in keybindings (#3179)
Previously, it was not possible to define keybindings with a modifier
and a function key. The `Key` enum only supported combinging the Ctrl
and Alt modifiers with letters. This is somewhat limiting: I would like
to make the Zellij keybindings more "distant" than those used in the
programs I use from within Zelilj, so that Zellij does not intefere with
those programs. Thus I would like to move some of the keybindings from
Ctrl+<character> to Ctrl+<function key>.

This change adds:

  * support for function keys with the Ctrl and Alt modifiers in the
    `Key` enum,
  * support for parsing such keybindings from the configuration file,
  * support for such keybindings in the protobuf which communicates the
    keybindings to plugins, and
  * support for these keybindings in the plugin API.

This is tested by modifying one of the e2e tests to include an example
of such keybindings. This verifies that the configuration is correctly
parsed, communicated with the plugin, and rendered.
2024-03-25 15:04:38 +01:00
Aram Drevekenin
223730f04a
style(fmt): fix warnings (#3223)
* fix warnings in zellij-server

* style(fmt): remove warnings

* style(fmt): rustfmt
2024-03-25 14:22:52 +01:00
Cristian Dominguez
8b2263ecf3
feat(cli): add run/edit in-place functions (#3038)
Co-authored-by: Aram Drevekenin <aram@poor.dev>
2024-03-25 12:31:02 +01:00
István Donkó
1958e9467e
fix: adjust duplicated cli alias (#3071) 2024-03-25 12:03:10 +01:00
Aram Drevekenin
87a43383d5
docs(changelog): fix for wrong window size on terminal startup 2024-03-25 10:30:25 +01:00
Aram Drevekenin
86e91ae137
fix(startup): recover from race condition that causes Zellij to start in the wrong size (#3218)
* fix(startup): recover from Zellij starting up in the wrong size

* style(fmt): rustfmt

* fix tests
2024-03-25 10:28:21 +01:00
Jae-Heon Ji
b24386e6b1
docs(changelog): add feat for sorthing session list 2024-03-24 23:37:25 +09:00
toymil
9deb033340
feat: list-sessions show newest sessions last, for better user experience (#3194)
* feat: sort `list-sessions` from oldest to newest

by putting the most recent sessions last, the user won't need to scroll back up
to see active sessions when there are a lot of resurrectable sessions.

* feat: add an `--reverse` option to the `list-sessions` subcommand

the `--reverse` flag reverts sorting order back to the old "newest sessions
first".  also updated call sites of `list_sessions` and `print_sessions` with
`reverse: true`, to keep the original behavior everywhere else except the output
of `list-sessions` subcommand.

* chore: update the help message

---------

Co-authored-by: Jae-Heon Ji <atx6419@gmail.com>
2024-03-24 23:30:47 +09:00
Aram Drevekenin
5fb75ab6d1
fix(swap-layouts): properly identify plugin aliases (#3217) 2024-03-22 17:01:17 +01:00
Aram Drevekenin
6a3ecb1a3c
docs(changelog): pipe keybind 2024-03-21 16:53:09 +01:00
Aram Drevekenin
07b76ee610
feat(pipes): allow piping messages to plugins from keybindings (#3212) 2024-03-21 16:52:15 +01:00
Aram Drevekenin
8504881e4e
docs(changelog): zpipe alias 2024-03-20 19:27:02 +01:00
Aram Drevekenin
c8b210cc67
HOTFIX: remove debug path 2024-03-20 18:36:19 +01:00
Aram Drevekenin
ec6d627b06
chore(integrations): zpipe alias (#3210)
* chore(completions): zpipe alias

* chore(integrations): zpipe alias
2024-03-20 18:34:50 +01:00
Aram Drevekenin
58b13babbc
docs(changelog): various race fixes 2024-03-20 08:52:28 +01:00
Aram Drevekenin
0d60bf16bf
fix(stability): various crashes (#3209) 2024-03-20 08:51:02 +01:00
Aram Drevekenin
65a7fcf426
docs(changelog): plugin infra and ux improvements 2024-03-18 09:21:28 +01:00
Aram Drevekenin
ee16a4b8c3
feat(plugins): session manager cwd and new filepicker (#3200)
* prototype

* folder selection ui in session manager

* overhaul strider

* scan folder host command

* get strider to work from the cli and some cli pipe fixes

* some ux improvements to strider

* improve strider's ui

* make strider ui responsive

* make session-manager new ui parts responsive

* fix tests

* style(fmt): rustfmt
2024-03-18 09:19:58 +01:00
Aram Drevekenin
12daac3b54
docs(changelog): switch session cwd 2024-02-29 16:27:36 +01:00
Aram Drevekenin
896b09aa6f
feat(plugins): allow specifying the cwd when switching sessions (#3172)
* feat(plugins): allow specifying the cwd when switching sessions

* style(fmt): rustfmt
2024-02-29 16:26:25 +01:00
Aram Drevekenin
d5bedd0e83
docs(changelog): pipe to plugin id 2024-02-29 14:08:49 +01:00
Aram Drevekenin
c725f6f4d3
feat(plugins): allow piping messages to a specific plugin id (#3170)
* feat(plugins): allow piping messages to a specific plugin id

* style(fmt): rustfmt
2024-02-29 14:07:05 +01:00
Aram Drevekenin
f5f8521807
docs(changelog): unset fullscreen fix 2024-02-28 19:12:10 +01:00
Aram Drevekenin
de8ecafcd2
fix(panes): no-op on unset fullscreen when no clients are connected (#3166)
* fix(panes): no-op on unset fullscreen when no clients are connected

* style(fmt): rustfmt
2024-02-28 19:10:42 +01:00
Aram Drevekenin
7bd77ccc61
docs(changelog): respect cwd for plugins 2024-02-28 16:13:13 +01:00
Aram Drevekenin
6340b5e312
fix(plugins): respect cwd and start filepicker at filesystem root (#3161)
* allow padding cwd to plugins

* improve strider performance and fix alias cwd issue

* style(fmt): rustfmt
2024-02-28 16:12:12 +01:00
Aram Drevekenin
eba597afc5
docs(changelog): plugin aliases 2024-02-26 15:31:08 +01:00
Aram Drevekenin
21273ac95a
feat(plugins): introduce plugin aliases (#3157)
* working prototype with passing tests

* new tests and passing plugin tests as well

* style(code): cleanups

* cleanup strider from unused search feature

* prototype of removing old plugin block from the config

* aliases working from config file and all tests passing

* fixups and cleanups

* use aliases in layouts

* update test snapshot

* style(fmt): rustfmt
2024-02-26 15:30:15 +01:00
Jae-Heon Ji
27bffbf153
docs(changelog): add moving tab 2024-02-19 03:41:16 +09:00
Bartosz Zbytniewski
dd5ea26cc7
feat: add moving tab to other position (#3047)
* feat: add moving tab to other position

* docs(changelog): revert changes

* test: update config snapshots

* refactor: get rid of HorizontalDirection enum

* refactor: cleanup code order

* refactor: use debug! instead of info!

* refactor: use more defensive way to switch tabs

* refactor: revert tip changes

* refactor: code formatting

* refactor: improve invalid input notification

* refactor: inline fns for calculating target index

---------

Co-authored-by: Jae-Heon Ji <atx6419@gmail.com>
2024-02-19 03:40:03 +09:00
Aram Drevekenin
b677ffe75f
docs(changelog): break pane fix 2024-02-12 11:24:56 +01:00
Aram Drevekenin
d645446e71
fix(panes): break pane to new tab (#3130) 2024-02-12 11:24:01 +01:00
Aram Drevekenin
3e9e078300
docs(changelog): curly underlines fix 2024-02-12 09:26:33 +01:00
Aram Drevekenin
06c16bb6d8
fix(terminal): curly underlines mid-chunk (#3125) 2024-02-12 09:25:24 +01:00
Aram Drevekenin
7dddaaccd1
docs(changelog): cwd fix 2024-02-09 16:42:27 +01:00
Aram Drevekenin
fffeca3e6e
fix(plugins): crash when reattaching to a non-existent host folder (#3126) 2024-02-09 16:39:37 +01:00