Skip to content

✨ macOS Accessibility kAXLineForIndexParameterizedAttribute not obtainable through the AX APIs #115

@godbout

Description

@godbout

Description

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, &currentLine) 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).

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    🏁 Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions