Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabianuntermoser/obsidian-neighbouring-files-plugin
Obsidian Plugin to navigate to the next and previous file in the current directory
https://github.com/fabianuntermoser/obsidian-neighbouring-files-plugin
obsidian-plugin
Last synced: 2 months ago
JSON representation
Obsidian Plugin to navigate to the next and previous file in the current directory
- Host: GitHub
- URL: https://github.com/fabianuntermoser/obsidian-neighbouring-files-plugin
- Owner: FabianUntermoser
- License: mit
- Created: 2023-04-25T20:32:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-11T15:40:36.000Z (4 months ago)
- Last Synced: 2024-09-12T00:14:09.986Z (4 months ago)
- Topics: obsidian-plugin
- Language: TypeScript
- Homepage: https://obsidian.md/plugins?id=neighbouring-files
- Size: 81.1 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Navigate to Neighbouring Files
This [Obsidian](https://obsidian.md/) Plugin adds two commands.
- Neighbouring Files: Navigate to next file
- Neighbouring Files: Navigate to prev fileThis enables you to navigate to a file located immediately before or after the currently active one.
Files are sorted based on their file name.## Examples
- Navigate to the next weekly from `2023-W17` to `2023-W18`
- Navigate to the next daily from `2023-04-31` to `2023-05-01`
- Navigate to the next file from `A4` to `A5`[obsidian-neighbouring-files.webm](https://github.com/user-attachments/assets/cdc04e2b-e3d9-4d77-8b2c-cbfa4ef4436d)
## How I use this
I map both commands to a shortcut using the [obsidian-vimrc-support](https://github.com/esm7/obsidian-vimrc-support) Plugin.
Here's my configuration from my `.obsidian.vimrc`.```vimrc
" navigation to neighbouring files
exmap next_file obcommand neighbouring-files:next
exmap prev_file obcommand neighbouring-files:prev
nmap gn :next_file
nmap gp :prev_file
```This enables me to navigate to neighbouring files quickly.
Caveat: This only works when the editor mode is on.