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

feat: replace ps1 prompt #244

Closed
szechp opened this issue May 15, 2024 · 5 comments
Closed

feat: replace ps1 prompt #244

szechp opened this issue May 15, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@szechp
Copy link

szechp commented May 15, 2024

i don't know if i just could not find this feature in the docs:

is there a way to replace certain things in the buffer that gets opened in neovim?

i have powerlevel10k prompt, like so

it would be perfect to strip this before editing the scrollback buffer, for added speed. is there a simple way to do this?

@mikesmithgh mikesmithgh added the enhancement New feature or request label May 15, 2024
@mikesmithgh mikesmithgh changed the title replace ps1 prompt? feat: replace ps1 prompt May 15, 2024
@mikesmithgh
Copy link
Owner

Hi @szechp. Currently, there is no feature to modify the result of the scrollback buffer. kitty-scrollback.nvim uses kitty @ get-text to read the contents of the scrollback buffer.

it would be perfect to strip this before editing the scrollback buffer, for added speed.

When you say for added speed, what do you mean? Are you referring to loading the scrollback buffer or navigating the buffer after it is already open?

What problem are seeing from ?

@szechp
Copy link
Author

szechp commented May 15, 2024

i should have clarified: with speed i meant editing speed. i can just select whole lines to edit, without having to remove which would make my editing process faster. i think loading would actually take longer, bc of the added processing.

@mikesmithgh
Copy link
Owner

I see, I took a look at https://github.com/romkatv/powerlevel10k. Would you mind sharing a screenshot of your prompt so I can get a better idea?

Do you have a typical sequence of keystroke you do for this? I'm wondering if you could just do Y to select from the prompt to end of line. But, it depends on your flow.

@szechp
Copy link
Author

szechp commented May 16, 2024

Screenshot 2024-05-16 at 08 27 51

this is my prompt, but i have to admit, i never knew of Y before, all i did was: go to the char i want, v, $ and then y which is quite cumbersome. Y is perfekt for what I need 😅 thanks for the help

@szechp szechp closed this as completed May 16, 2024
@mikesmithgh
Copy link
Owner

@szechp awesome! Yep, Y is basically y$ in Neovim. In regular vim Y is actually yy so it is easy to miss. Glad you are using kitty-scrollback.nvim 😸

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

No branches or pull requests

2 participants