Commit Graph

2661 Commits

Author SHA1 Message Date
Aram Drevekenin
89ce355c04
feat(config): allow disabling writing session metadata to disk (#3258)
* feat(config): allow disabling writing session metadata to disk

* style(fmt): rustfmt
2024-04-12 16:15:11 +02:00
Aram Drevekenin
1c883c2a83
docs(changelog): start session in the background 2024-04-12 15:40:35 +02:00
Aram Drevekenin
e68bc649d6
feat(cli): allow starting a session detached (#3257)
* feat(cli): allow starting a session detached

* fix tests
2024-04-12 15:39:36 +02:00
Aram Drevekenin
a0f48c6731
docs(readme): update roadmap and remove extraneous section (#3252) 2024-04-10 20:29:50 +02:00
Aram Drevekenin
57676f161f
fix(swap-layouts): properly identify plugin aliases with initial cwd (#3250)
* fix(swap-layouts): properly identify plugin aliases with initial cwd

* style(fmt): rustfmt
2024-04-10 17:00:04 +02:00
Aram Drevekenin
2b6d4ad8e5
docs(changelog): swap layout fix 2024-04-10 15:27:57 +02:00
Aram Drevekenin
41dbe65e26
fix(layouts): recover from resurrection crash and pick up swap layouts properly (#3249)
* fix(layouts): recover from issues in the constraint system

* fix(keybinds): pick up swap layouts for new tab keybinding
2024-04-10 15:26:54 +02:00
Aram Drevekenin
462239b535
fix(plugins): various pre-release issues (#3246)
* fix(strider): close_self instead of close_focus

* fix(plugins): populate caller_cwd for all aliases

* fix(config): launch the session-manager alias rather than the explicit internal url

* style(fmt): rustfmt

* fix tests
2024-04-05 18:43:14 +02:00
Aram Drevekenin
52e81bec7d
docs(changelog): serialize UI components 2024-04-05 15:03:32 +02:00
Zykino
b10ccb8b6f
feat(plugins): format UI components API (#3193)
* feat: Add serialization methods to ui components

* Revert: do not modify the `print` method at all

---------

Co-authored-by: Zykino <3809938+Zykino@users.noreply.github.com>
2024-04-05 15:02:36 +02:00
har7an
cf18fb3867
utils/cli: Add move-tab action (#3244)
* utils/cli: Add `move-tab` action

which was previously only exposed through keybindings.

* CHANGELOG: Add PR 3244.
2024-04-04 13:26:42 +00:00
Aram Drevekenin
d267948689
docs(changelog): zellij:OWN_URL 2024-03-28 15:38:40 +01:00
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