Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when moving focus back to original pane in Zellij #456

Open
jamesgecko opened this issue Mar 14, 2025 · 3 comments
Open

Errors when moving focus back to original pane in Zellij #456

jamesgecko opened this issue Mar 14, 2025 · 3 comments

Comments

@jamesgecko
Copy link

I'm using the latest vim-slime (9bc2e13) in Neovim 0.10.4 with Zellij 0.41.2.

-- lazy.nvim configuration
  {
      "jpalardy/vim-slime",
      init = function()
        vim.g.slime_no_mappings = 1
        vim.g.slime_target = "zellij"
        vim.g.slime_default_config = {session_id = "current", relative_pane = "right"}
        vim.g.slime_dont_ask_default = 1
      end
  },

When I try to send a command to the default pane to the right, I get an error

:SlimeSend1 bundle exec rspec myfile.rb

E716: Key not present in Dictionary: "relative_move_back"
E116: Invalid arguments for function slime#common#system
Press ENTER or type command to continue

It sends the command, but displays this error and doesn't move the cursor back to the original pane.

@jpalardy
Copy link
Owner

hi @jamesgecko

what's that about myfile.rb? that does look familiar 🤔

@jamesgecko
Copy link
Author

I have a keyboard binding for vim-slime to start my Ruby test runner with the current buffer file name. That's an example of the command it runs.

I can trigger the error by sending anything to the terminal. :SlimeSend1 ls is a simpler example.

@jpalardy
Copy link
Owner

Got it 👍

I'm not on Zellij myself but the problem sounds specific to it. Let's go with elimination

  • did this use to work and suddenly stopped? or did it never work?
  • what happens if you send the commands yourself, from the command-line? (commands in question)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants