multitask: Plugin starts very slow and do nothing

I really like the idea of this plugin, but I’ve encountered some issues when using it. The plugin takes a very long time to start (about two minutes) and the entered commands don’t execute.

Here are the reproduction steps:

  1. I execute the command
zellij action start-or-reload-plugin file:$HOME/zellij-plugins/multitask.wasm --configuration "shell=$SHELL,ccwd=`pwd`"
  1. A floating panel immediately opens, but it doesn’t respond to interaction or keyboard input (including zellij shortcuts) for about two minutes. During this time, one of my CPU cores reaches 100% usage (the zellij process).
  2. After 2 minutes, nano opens in this panel where I enter the example code:
#!/usr/bin/zsh
#
# Hi there! Anything below these lines will be executed on save.
# One command per line.
# Place empty lines between steps that should run in parallel.
# Enjoy!
echo "I will be run first"
echo "I will be run simultaneously to the line above" && sleep 2

echo "I will be run 2 seconds later"
echo "so will I!"
  1. I exit nano with saving
  2. A file ~/.multitask was created with the content from step 3, however execution didn’t occur - I just see an empty terminal window.

Env

zellij 0.42.1
miltitask 0.42.1
EDITOR=/usr/bin/nano
zsh 5.9
Fedora Linux 41 x86_64
Linux 6.13.7-200.fc41.x86_64

terminal foot

foot version: 1.20.2 -pgo +ime +graphemes +toplevel-icon -assertions

Hardware

Framework 17,
CPU AMD Ryzen 9 7940HS (16) @ 5.26 GHz
RAM 27.20 GiB

Note - this is First and only zelliji plugin I have installed

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (13 by maintainers)

Most upvoted comments

If this is sufficient, then I’ll close this issue. You can keep tracking the progress of the refactor in https://github.com/imsnif/multitask/issues/14 (if you’re interested).

Sure, thank you very much!

Also noting I’ve made another release of the refactor multitask.wasm which you can find here. This version has options to change the layout of the multitask edit pane. The new default will have the default tab/status bars.

Wow, it works perfect! Not problems to switch between tabs now!

Image

@leakec thank you for response! I try run it in empty ~/tmp dir - nothing changes, it still have very slow initial load. Idk it related or not, but I am on btrfs filesystem

will try refactor branch