# Select current command

**URL:** <https://discourse.joplinapp.org/t/select-current-command/12733>\
**Category:** Development\
**Created:** [27 November 2020 18:00 UTC](https://discourse.joplinapp.org/t/select-current-command/12733 "2020-11-27T18:00:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambrt](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/ambrt/32/4428_2.png) [@ambrt](https://discourse.joplinapp.org/u/ambrt)\
**Post date:** [27 November 2020 18:00 UTC](https://discourse.joplinapp.org/t/select-current-command/12733/1 "2020-11-27T18:00:52Z")

</div>

There are a few commands available in editor (for plugins use).  
Although there is selectAll ([https://github.com/laurent22/joplin/blob/17d835d694cf8afd459443f1ba279d8a9100eae5/packages/app-desktop/gui/NoteEditor/commands/editorCommandDeclarations.ts#L27](https://github.com/laurent22/joplin/blob/17d835d694cf8afd459443f1ba279d8a9100eae5/packages/app-desktop/gui/NoteEditor/commands/editorCommandDeclarations.ts#L27))  
it might be useful to have selectLine that cursor is currently at.

My use case would be for example copying line, extracting noteid from it and going to note without having to explicitly highlight it.
