Skip to content

Conversation

@iloveitaly
Copy link
Contributor

I'm not sure if this actually works yet, but copy/edit/etc don't work when there is a status indicator on the file (??, M, etc)

CleanShot 2025-11-18 at 15 54 58@2x

Will test and revise, unless I'm doing something wrong to trigger this in the first place.

… parsing

The status menu content was using gf_git_command_with_header which forces
color.ui=always, embedding ANSI color codes in the output. When the status
interpreter tried to extract file paths with cut -c4-, it was cutting through
the middle of these invisible escape sequences, causing Alt-E to attempt
editing files with status codes (like "M ") still in the path.

Fixed by using color.status=false when generating the status menu content,
ensuring clean output that can be correctly parsed by cut -c4-.
@iloveitaly
Copy link
Contributor Author

This isn't working properly. Will report back when I've had more time to tinker with it unless there is an easier way.

@iloveitaly iloveitaly closed this Jan 18, 2026
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

Successfully merging this pull request may close these issues.

2 participants