You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should be possible to get the current line number through the AX APIs by giving a location in the TextArea. currently it doesn't work and the API returns parameterizedAttributeUnsupported. might be linked to macOS Accessibility data missing in CodeEdit. (see #114)
this makes it impossible to apply Vim motions in CodeEdit through the AX APIs. a real pity!
Alternatives Considered
at that point i can't find any alternatives, because getting the right line number is a crucial part for navigating through the TextArea with the AX APIs.
Additional Context
calling AXUIElementCopyParameterizedAttributeValue(axFocusedElement, kAXLineForIndexParameterizedAttribute as CFString, location as CFTypeRef, ¤tLine) returns parameterizedAttributeUnsupported rather than filling the currentLine with... the current line number. location is a character location in the TextArea (0 for beginning of document).