# Hotkey for select curent line

**URL:** <https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009>\
**Category:** Feature requests\
**Created:** [October 13, 2020, 7:19pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009 "2020-10-13T19:19:22Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![FedeK](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/8baadc/32.png) [@FedeK](https://forum.obsidian.md/u/FedeK)\
**Post date:** [October 13, 2020, 7:19pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/1 "2020-10-13T19:19:22Z")

</div>

please make a hotkey that select current line at cursor

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [October 15, 2020, 12:19pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/2 "2020-10-15T12:19:34Z")

</div>

This could be done with vim mode if you’re already using that by using Shift + V

---

<div class="post-metadata">

**Author:** ![FedeK](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/8baadc/32.png) [@FedeK](https://forum.obsidian.md/u/FedeK)\
**Post date:** [November 4, 2020, 5:55am UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/3 "2020-11-04T05:55:36Z")

</div>

i dont use vim

---

<div class="post-metadata">

**Author:** ![malecjan](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@malecjan](https://forum.obsidian.md/u/malecjan)\
**Post date:** [November 9, 2020, 1:45pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/4 "2020-11-09T13:45:15Z")

</div>

### Current workarounds / solution …

… which might temporarily cover a lot of use cases for the proposed hotkey:

**Line (paragraph) under cursor can be selected by triple click.**

**Current line (around caret):**

- Wrapped part of line surrounding caret(sometimes called cursor) can be selected by sequence of hotkeys: [End, Shift+Home]
- When that part starts with indentation, then press `Shift+Home` once more to include the indentation in the selection.
- Whole wrapped line can be copied by Ctrl+C or cut out (= deleted) by Ctrl+X when no text is selected (Otherwise you would get the selection instead of current line). If some text is selected before this action, then first cancel the selection e.g. by pressing `Escape` or `Left` or `Right` or `click`. Canceling multiple selection might require sequence of presses.
- **Whole line can be selected by cutting it out by Ctrl+X and then immediately pressing Ctrl+Z (Undo).** (tested in Obsidian v0.10.1 in Windows 7)

Sequences of presses can be triggered by single hotkey using e.g. [AutoHotkey](https://www.autohotkey.com/) or Keyboard Maestro. This (or some clipboard manager) can also deal with loss of previous clipboard content produced by Ctrl+X.

---

<div class="post-metadata">

**Author:** ![malecjan](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@malecjan](https://forum.obsidian.md/u/malecjan)\
**Post date:** [November 9, 2020, 2:12pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/5 "2020-11-09T14:12:13Z")

</div>

Proposed extension of behavior for wrapped lines:

- In wrapped part of line (not first part):  
Second press of Shift+Home (/ of Home while holding Shift) extends selection to the beginning of current line,  
including leading indentation (to unify number of keypresses for the same effect, regardless of wrapping).
- Equivalently for Shift+End (here the indentation is not an issue).
- Side-effect: This would also allow to navigate to start of paragraph by pressing sequence [Shift+Home+Home, Home]. Equivalently for end of paragraph.

Edit: Reposted as separate feature request:

- [Keyboard-only selection of wrapped text - improvement](https://forum.obsidian.md/t/keyboard-only-selection-of-wrapped-text-improvement/10845)

---

<div class="post-metadata">

**Author:** ![looper](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/c0e974/32.png) [@looper](https://forum.obsidian.md/u/looper)\
**Post date:** [September 1, 2021, 1:55am UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/6 "2021-09-01T01:55:03Z")

</div>

> [@malecjan](#):
>
> Whole wrapped line can be copied by Ctrl+C or cut out (= deleted) by Ctrl+X when no text is selected.

This is awesome and really should be documented in the Help file. I’ve been missing functionality like this and wishing Obsidian had it. All along it did!

> [@malecjan](#):
>
> Selection can be canceled by pressing e.g. `Escape` or `Left` or `Right` or `click`. Canceling multiple selection might require sequence of presses.

I don’t understand why this is part of workaround #3. It seems like it should be part of your last workaround (#4), right? Otherwise, I don’t understand what you’re saying here…there is no “selection” if you use Ctrl-C or Ctrl-X to copy or cut a paragraph that is not selected.

Anyways, so glad you posted this.

---

<div class="post-metadata">

**Author:** ![Felipe](https://forum.obsidian.md/user_avatar/forum.obsidian.md/felipe/32/13848_2.png) [@Felipe](https://forum.obsidian.md/u/Felipe)\
**Post date:** [September 1, 2021, 9:42am UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/7 "2021-09-01T09:42:59Z")

</div>

@FedeK

The QuickAdd plug-in have a feature that let the user create a hotkey that selects the active/current line . Might be what you are looking for 🙂

> <https://github.com/chhoumann/quickadd/issues/49>
>
> Hello @chhoumann !
> My feature request is an Additional Commands to the MACRO Configuration (between Obsidian Commands and Scripts.
> I was thinking about...

---

<div class="post-metadata">

**Author:** ![malecjan](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@malecjan](https://forum.obsidian.md/u/malecjan)\
**Post date:** [September 7, 2021, 9:28am UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/8 "2021-09-07T09:28:40Z")

</div>

@looper Thanks for feedback. Let me know if current edit of paragraph need 3 eliminates the confusion.

---

<div class="post-metadata">

**Author:** ![meekai](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@meekai](https://forum.obsidian.md/u/meekai)\
**Post date:** [December 22, 2021, 2:47pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/9 "2021-12-22T14:47:50Z")

</div>

hey. i just downloaded the plug-in. still confused how i can add a hotkey to select active line, i can’t see it in the command palette. thanks!

---

<div class="post-metadata">

**Author:** ![Felipe](https://forum.obsidian.md/user_avatar/forum.obsidian.md/felipe/32/13848_2.png) [@Felipe](https://forum.obsidian.md/u/Felipe)\
**Post date:** [December 23, 2021, 4:18pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/10 "2021-12-23T16:18:12Z")

</div>

You have to enable making the thunder yellow  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/2/e/2ed0702f38e71c156b429569b54f546a6d24603d.jpeg)

---

<div class="post-metadata">

**Author:** ![mr\_cal](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mr\_cal](https://forum.obsidian.md/u/mr_cal)\
**Post date:** [February 8, 2022, 2:05pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/11 "2022-02-08T14:05:50Z")

</div>

My proposal would be to override Control+A:

- Press Control+A once → current line is selected
- Press Control+A again → entire document is selected

I believe this is how OneNote functions and I find it very useful.

---

<div class="post-metadata">

**Author:** ![ayoh](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ayoh/32/48755_2.png) [@ayoh](https://forum.obsidian.md/u/ayoh)\
**Post date:** [June 6, 2023, 11:12pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/12 "2023-06-06T23:12:59Z")

</div>

Confirmed that this works.  
For more specific instructions:  
After installing the plugin, go to the settings.  
Then Manage Macros, create a new Macro, name it something like “selectActiveLine”, and add the Editor command “Select Active Line”.

The Macro should just have one command now. Close it.

Create a Template, name it “Select Active Line”, add the “selectActiveLine” macro. Make sure that the lightning bolt in the template is highlighted yellow

Back in Obsidian Hotkey Preferences, search for “Select Active Line”. You can now set that to whatever hotkey you’d like

I’m not sure where I got this from, maybe Xcode, but I prefer `ctrl+L` as the hotkey to select line

---

<div class="post-metadata">

**Author:** ![d9k](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@d9k](https://forum.obsidian.md/u/d9k)\
**Post date:** [November 9, 2023, 9:31am UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/13 "2023-11-09T09:31:17Z")

</div>

More convenient plugin which adds many useful line manipulation actions including “Select line”: [obsidian-editor-shortcuts](https://github.com/timhor/obsidian-editor-shortcuts/blob/master/README.md)

---

<div class="post-metadata">

**Author:** ![d9k](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@d9k](https://forum.obsidian.md/u/d9k)\
**Post date:** [November 9, 2023, 1:49pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/14 "2023-11-09T13:49:03Z")

</div>

Also [select-current-line-plugin](https://github.com/gokulk16/select-current-line-plugin) exists but I didn’t try this one

---

<div class="post-metadata">

**Author:** ![groovyani](https://forum.obsidian.md/user_avatar/forum.obsidian.md/groovyani/32/95156_2.png) [@groovyani](https://forum.obsidian.md/u/groovyani)\
**Post date:** [August 1, 2026, 5:28pm UTC](https://forum.obsidian.md/t/hotkey-for-select-curent-line/7009/15 "2026-08-01T17:28:27Z")

</div>

Thank you for highlighting this plugin! Still works perfectly on 1.13.4.
