# Open note with the oldest modification date

**URL:** <https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326>\
**Category:** Help\
**Created:** [August 20, 2025, 10:25am UTC](https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326 "2025-08-20T10:25:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![totholz5D](https://forum.obsidian.md/user_avatar/forum.obsidian.md/totholz5d/32/53567_2.png) [@totholz5D](https://forum.obsidian.md/u/totholz5D)\
**Post date:** [August 20, 2025, 10:25am UTC](https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326/1 "2025-08-20T10:25:52Z")

</div>

Hi there,  
I was wondering what would be the way to go to create a keyboard shortcut which would open the note with the oldest modification date.

Would it be possible to create a command for this using the [shell command plugin](https://forum.obsidian.md/t/shell-commands-plugin/23497) ?

---

<div class="post-metadata">

**Author:** ![cheezopath](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cheezopath/32/33683_2.png) [@cheezopath](https://forum.obsidian.md/u/cheezopath)\
**Post date:** [August 20, 2025, 2:04pm UTC](https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326/2 "2025-08-20T14:04:21Z")

</div>

I feel like this would be possible with templater.  
the template would contain code that identified then opened the oldest modified note. you could bing insertion/execution to a shortcut

---

<div class="post-metadata">

**Author:** ![totholz5D](https://forum.obsidian.md/user_avatar/forum.obsidian.md/totholz5d/32/53567_2.png) [@totholz5D](https://forum.obsidian.md/u/totholz5D)\
**Post date:** [August 20, 2025, 7:18pm UTC](https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326/3 "2025-08-20T19:18:58Z")

</div>

Ok, I found the solution. It is possible to add the following command in the Obsidian shell plugin:

```auto
open "obsidian://open?file=$(find . -name "*.md" -type f -not -path "*/.*" -print0 | xargs -0 ls -rt 2>/dev/null | head -1)"

```

looks for the .md file with the oldest modification date in the vault’s root folder and its subfolders

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [September 17, 2025, 7:19pm UTC](https://forum.obsidian.md/t/open-note-with-the-oldest-modification-date/104326/4 "2025-09-17T19:19:31Z")

</div>

Closed on September 17, 2025, 7:19pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
