Comments (8)
I found another workaround. Add the following line before vim.fn.termopen
:
vim.cmd("let &shell='/bin/sh'")
I tried executing a Nushell specific command from within the scrollback afterward and it still worked, i.e. setting that variable doesn't affect which shell gets used interactively.
from kitty-scrollback.nvim.
The new release works for me, no problem ๐
from kitty-scrollback.nvim.
Hey @J-Kappes thanks for the issue and workaround. I'll take a look into this ๐ I have had some issues before with other shell (fish) compatibility around those as well. I think I need to have a more generalized approach
from kitty-scrollback.nvim.
Reproduced:
brew install nushell
echo '/opt/homebrew/bin/nu' >> /etc/shells
chsh -s /opt/homebrew/bin/nu
==============================================================================
kitty-scrollback.nvim
ERROR: failed to execute remote Kitty command
*entrypoint:* |termopen()| |::| |exit_code| |~=| |0|
*command:* kitty @ get-text --match="id:1" --ansi --clear-selection --add-cursor --extent=all | sed -E -e 's/๏ฟฝ\[\?25.๏ฟฝ\[.*;.*H๏ฟฝ\[.*//g' -e 's/$/๏ฟฝ[0m/g' && kitty +runpy 'sys.stdout.flush()' && printf '๏ฟฝ]2;'
*channel_id:* 3
*code:* 1
*stdout:*
Error: nu::parser::shell_andand
ร The '&&' operator is not supported in Nushell
โญโ[source:1:1]
1 โ kitty @ get-text --match="id:1" --ansi --clear-selection --add-cursor --extent=all | sed -E -e 's/[\?25.[.*;.*H[.*//g' -e 's/$//g' && kitty +runpy 'sys.stdout.flush()' && printf '๏ฟฝ]2;'
ยท โโฌ
ยท โฐโโ instead of '&&', use ';' or 'and'
โฐโโโโ
help: use ';' instead of the shell '&&', or 'and' instead of the boolean '&&'
*stderr:*
<none>
from kitty-scrollback.nvim.
I found another workaround. Add the following line before
vim.fn.termopen
:vim.cmd("let &shell='/bin/sh'")I tried executing a Nushell specific command from within the scrollback afterward and it still worked, i.e. setting that variable doesn't affect which shell gets used interactively.
Ohhh that is very clever! I think I may use that. Thanks for the share!
from kitty-scrollback.nvim.
๐ This issue has been resolved in version 2.1.2 ๐
The release is available on GitHub release
Your semantic-release bot ๐ฆ๐
from kitty-scrollback.nvim.
Hey @J-Kappes, I just merged the approach of overriding shell
. Thanks for the recommendation, let me know if this works or if you have any other issues.
from kitty-scrollback.nvim.
The new release works for me, no problem ๐
awesome, thanks for looking into it ๐
from kitty-scrollback.nvim.
Related Issues (20)
- chore: investigate nightly test failures
- bug: very small window causes E49: Invalid scroll size HOT 1
- bug: failure to open over kitten ssh HOT 4
- chore: add tests for ssh connections HOT 2
- chore: investigate flaky test failure with incorrect git branch HOT 1
- test: track and fix flaky CI tests HOT 2
- chore: kitty release 0.34.0 update test matrix HOT 1
- fix: fails to open over kitten ssh split window HOT 1
- feat: add nvim-terminal.lua integration
- bug: failed to launch child: nvim HOT 9
- Installation instructions HOT 1
- Bug: scrollback editing freezes when used with with auto-session HOT 1
- feat: replace ps1 prompt HOT 5
- feat: make the current cmdline editable in place HOT 7
- ci: update Neovim test matrix for v0.10 release HOT 1
- bug: ksb_builtin_last_visited_cmd_output doesn't capture everything HOT 6
- bug: executing command causing autocomplete in fish shell HOT 1
- Buffer opens up with modifiable set to false HOT 1
- bug: incorrect filetype for paste window HOT 1
- feat: add ability to have scrollback window and paste window open at the same time HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty-scrollback.nvim.