-
-
Notifications
You must be signed in to change notification settings - Fork 761
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
Rename file with a long name #1213
Comments
Duplicate of #279. |
Reopening as this can probably be fixed if the name itself can be scrolled when the cursor is at the edges but I don't have time for that. @N-R-K @luukvbaal @leovilok any of you wanna give it a try? |
I think the change needs to go in
where we should account for the number of columns and show the string till the cursor position when it exceeds COLS. |
@ixzh please confirm if the issue is fixed with the patch. |
Yes, it works! Thank you !!! |
Hmmm, the cursor is one char to the left of where it should be for me. - mvaddnwstr(xlines - 1, x, buf + (pos - (xcols - x)), xcols - x);
+ mvaddnwstr(xlines - 1, x, buf + (pos - (xcols - x) + 1), xcols - x); |
Sorry, I can't repro. Please do the required manipulation and raise the PR. |
Sorry, saw the full mail now. |
I will add the fix now. Thanks! |
Is your feature request related to a problem? Please describe.
Can't see what's been modified due to truncation to screen width
Describe the solution you'd like
If the file name is longer than screen width, the inplace rename will only display the beginning of the file name. Most of the time I want to modify the file extension or prepend some number before it, but can't see the cursor due to truncation. See below example:
Describe alternatives you've considered
ctrl-a
andctrl-e
to jump to start/end of the line, and show it on screen (scrolling?)Thanks!
The text was updated successfully, but these errors were encountered: