-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: add command-line editing for bash, fish, zsh #253
base: main
Are you sure you want to change the base?
Conversation
lua/kitty-scrollback/windows.lua
Outdated
@@ -71,8 +71,15 @@ end | |||
M.open_paste_window = function(start_insert) | |||
vim.cmd.stopinsert() | |||
|
|||
if vim.env.KITTY_SCROLLBACK_NVIM_EDIT_INPUT then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consider adding a mode env var that can be used in the future for other special cases
scripts/edit_command_line.sh
Outdated
ksb_input_file="$ksb_input_dir/input.ksb_editcommand" | ||
cp "$input_file" "$ksb_input_file" | ||
|
||
kitty @ kitten /Users/mike/gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded your path here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works after patching it manually though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for pointing this out! I just removed the hardcoded path. Could you try with latest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works 👍
related feature we might want is being able to scroll the scrollback buffer, or more generally a way to go to the scrollback buffer and keep the prompt window open at the same time, and then go back to the prompt window. |
oh I just noticed the prompt window buffer filetype is bash, in this case we can use the correct filetype based on the shell. i think in general we can figure out what shell is running using |
good catch. so it pulls it from I think that may just be what your There is an option to override this in kitty-scrollback.nvim |
interesting, yeah I'd have to think about this. I suppose I could have the ability to not autoclose the floating paste window or an option to open a regular window instead of a floating window. Then you can just navigate back and forth. I opened #255 for this feature. |
@IndianBoy42 thanks for the feedback! I like the ideas |
@IndianBoy42 FYI I just pushed a fix for this. It should pull the filetype from the shell that is configured in Kitty now. |
Oh I just remembered about this, I manually |
31d9a1e
to
41b0ab4
Compare
closes #245
TODO: