fabianuntermoser6k downloadsNavigate to the next and previous file in the current directory.
This Obsidian Plugin adds navigational commands that let you quickly navigate to neighbouring files in your vault.
2023-W17 → 2023-W18)2023-05-31 → 2023-06-01)A4 → A5)obsidian-neighbouring-files.webm
Default Commands:
Commands:
Supported Sorting Modes:
The default command uses the same sort order as the File explorer. You can configure a fallback sort order in the plugin settings.
By default, navigation is restricted to markdown files. In the settings you can enable support for other file types:
In Obsidian, open Settings -> Hotkeys, search for neighbouring-files, and assign keys to the command IDs you want:
neighbouring-files:nextneighbouring-files:prevneighbouring-files:next-alphabeticalneighbouring-files:prev-alphabeticalneighbouring-files:older-createdneighbouring-files:newer-createdneighbouring-files:older-modifiedneighbouring-files:newer-modifiedneighbouring-files:folder-upneighbouring-files:folder-downneighbouring-files:folder-nextneighbouring-files:folder-prevInstead of configuring obsidian hotkeys to trigger the navigation commands,
you can also use the obsidian-vimrc-support plugin to map more useful hotkeys such as gn or gp
(Caveat: This only works when the editor mode is on).
Example .obsidian.vimrc.
" define navigation commands
exmap next_file obcommand neighbouring-files:next
exmap prev_file obcommand neighbouring-files:prev
exmap next_file_alphabetical obcommand neighbouring-files:next-alphabetical
exmap prev_file_alphabetical obcommand neighbouring-files:prev-alphabetical
exmap older_file_created obcommand neighbouring-files:older-created
exmap newer_file_created obcommand neighbouring-files:newer-created
exmap older_file_modified obcommand neighbouring-files:older-modified
exmap newer_file_modified obcommand neighbouring-files:newer-modified
exmap folder_up obcommand neighbouring-files:folder-up
exmap folder_down obcommand neighbouring-files:folder-down
exmap folder_next obcommand neighbouring-files:folder-next
exmap folder_prev obcommand neighbouring-files:folder-prev
" add navigation mappings
nmap gn :next_file<cr>
nmap gp :prev_file<cr>
nmap fu :folder_up<cr>
nmap fd :folder_down<cr>
nmap fn :folder_next<cr>
nmap fp :folder_prev<cr>
make changeset
make release
make release runs Changesets versioning, creates the release commit/tag, and pushes tags to trigger the GitHub release workflow.
This project is licensed under MIT License.