Skip to content

Commit

Permalink
Version bump, README
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhovn committed Jun 18, 2022
1 parent fdeac26 commit 59d696a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# File Explorer Keyboard Navigation

Adds commands to open the next/previous file in the file explorer. There are no default hotkey bindings; go to `Settings` -> `Hotkeys` to set your own. I use `Ctrl` + ``/``.
Adds commands to navigage the file explorer using the keyboard. There are no default hotkey bindings; go to `Settings` -> `Hotkeys` to set your own. I use `Ctrl` + ``/`` for next/previous file, and `Ctrl` + `Shift` + ``/`` for next/previous folder.

This plugin is currently a simple proof-of-concept with only limited testing. It may navigate files out of visual order, especially when dealing with non-standard characters or non-latin text. Please file an issue if you notice any errors.
This plugin is currently a proof-of-concept with only limited testing. It may navigate files out of visual order, especially when dealing with non-standard characters or non-latin text. Please file an issue if you notice any errors.

Note that the latest insider release (0.15.0) supports keyboard naviagation natively, though I'm unsure how exactly it compares to the features of this plugin.

## Limitations
The commands navigate files within the parent folder of the currently opened note, **in alphabetical or reverse alphabetical order** by note name. If your files are displayed in "Modified time" or "Created time" order, the plugin will iterate through the files as if they were in alphabetical order.

The plugin may not correctly recognize files immediately on creation, and Obsidian ocassionally orders files strangely immediately after a rename. If it is skipping new files, refresh or restart Obsidian.

Expand Down
1 change: 0 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ export default class FileExplorerKeyboardNav extends Plugin {

//@ts-ignore ; doesn't know about scrollIntoViewIfNeeded()
item.titleEl.scrollIntoViewIfNeeded({ behavior: "smooth", block: "nearest" });

}
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "file-explorer-keyboard-nav",
"name": "File Explorer Keyboard Navigation",
"version": "0.2.0",
"version": "0.3.0",
"minAppVersion": "0.12.0",
"description": "Navigate the file explorer using the keyboard.",
"author": "kzhovn",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "file-explorer-keyboard-nav",
"version": "0.2.0",
"version": "0.3.0",
"description": "Navigate the file explorer using the keyboard.",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 59d696a

Please sign in to comment.