SketchyVim icon indicating copy to clipboard operation
SketchyVim copied to clipboard

Notes app reformats whole document

Open abdullah8a0 opened this issue 3 years ago • 4 comments

Going into Normal mode and deleting a character in the body turns the whole Note into Title, i.e boldface and bigger font. Screen Shot 2022-09-21 at 12 56 43 PM

Deleted a character in the highlighted line

abdullah8a0 avatar Sep 21 '22 16:09 abdullah8a0

I have the same problem.

daxmate avatar Nov 25 '22 02:11 daxmate

This might be connected to #15 and could probably be solved by replacing the current text replacement approach (which replaces the entire text of a field on a change): https://github.com/FelixKratz/SketchyVim/blob/010426a7b924a280257080e70afe6a6855037c20/src/ax.c#L77-L91 with an atomic approach, only replacing lines that have changed. As I already stated in #15 I would accept pull requests regarding this, since it is not something that I encounter in my personal workflow but could be changed fairly easily.

FelixKratz avatar Nov 25 '22 14:11 FelixKratz

I've been trying to use SketchyVim with Xcode to replace the subpar Vim Xcode implementation (no dot command...) and faced a similar issue. When doing any change, the top of the editor is shifting to the line that was modified, as shown in this screencast. My C is really rusty, but maybe I could contribute this fix with some guidance. kAXValueAttribute changes the whole content of the element, did you have an API in mind to perform atomic changes?

https://user-images.githubusercontent.com/58686775/210365027-6757669e-3e60-4fb2-91ce-9db9fd32883a.mov

mickael-menu avatar Jan 03 '23 13:01 mickael-menu

I'd be potentially interested in fixing this but don't know much about the system APIs. @FelixKratz, how would you recommend going about it?

Major annoyance when using it. Find every other or so text field unexpectedly is deleted when using the tool.

sahewat avatar Nov 29 '23 07:11 sahewat