Skip to content

Programmatical cancel/abort of cursors/range session through editor.action.cancelRanges #5052

Open
@LucHermitte

Description

@LucHermitte

Issue to trace the feature request discussed in #4986

Is your feature request related to a problem? Please describe.

There is no programmatically way to cancel a cursors/range session.

Describe the solution you'd like

Support for the following would be perfect

:call CocAction('runCommand', 'editor.action.cancelRanges')

Describe alternatives you've considered

I know feedkeys() could be used, but I'd rather avoid feeding <esc> if I could.

Additional context

My main use case would be to replace an internal the dependence in my plugins to implement named-placeholders. See the discussion in #4986

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions