-
Notifications
You must be signed in to change notification settings - Fork 1
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
Wrong hat positions in dired mode b/c of hidden text #15
Comments
I think we need to be using emacs-cursorless/cursorless-state.el Line 73 in 5e0f8e7
|
buffer-substring-no-properties doesn't do what we want either. eg. if I go to a dired buffer I see:
but the actual text that is produced by either write-region or by buffer-substring-no-properties or by copying is:
This is because of Clearly we don't want to send the hidden text to VSCode. Oddly enough we also might not want to send the replacement text ("* ") to VSCode, because it's not editable and the cursor can't actually select it. Either way involves some annoying arithmetic to figure out how to sync hat/cursor positions b/w emacs & vscode. |
Ugh, you're right. I ran into this same issue with magit, both are using the invisibility spec stuff - https://www.gnu.org/software/emacs/manual/html_node/elisp/Invisible-Text.html.
I think we can punt on this for a while, this is a whole can of worms that we're going to run into with shells too - e.g. allow editing the command line but not any of the output from previous commands. |
I think this is because my dired-mode setup hides some text (the file modes, owner, mtime, etc), but it still shows up in the buffer contents and gets sent to cursorless, so the hat positions are messed up.
The text was updated successfully, but these errors were encountered: