Skip to content

Commit

Permalink
Add vim-style navigation hotkeys (mod-hjkl)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Nov 8, 2024
1 parent 7a8b462 commit f7b1668
Show file tree
Hide file tree
Showing 7 changed files with 301 additions and 251 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Quick Explorer for Obsidian

> New in 0.2.11: Vim-style navigation hotkeys: Mod+h/j/k/l (Mod=Cmd on Mac, Ctrl on PC)
> New in 0.2.0: If you're using Obsidian 0.16.3 and have tab titlebars turned on, Quick Explorer can use them in addition to (or in place of) the main title bar or status bar. If you want to hide QE's default breadcrumbs, you can turn them off using the [Style Settings](https://github.com/mgmeyers/obsidian-style-settings) plugin.
[Obsidian](https://obsidian.md)'s in-app file explorer is pretty flexible, but it's almost 100% mouse-driven and not at all keyboard-friendly. Worse, if you have a lot of folders with lots of files in them, you can spend a lot of time expanding and collapsing folders, and scrolling around to find what you're looking for. This can be especially annoying when all you want is to do something with the "current" folder, or a parent of it... *without* needing to open a sidebar and close it again afterwards. (And last, but not least, trying to rapidly preview the contents of a lot of notes with the mouse is a giant PITA.)
Expand Down Expand Up @@ -42,6 +43,7 @@ And an extensive set of keyboard operations is available as well:
* Typing normal text searches item names within a folder (or context menu), selecting the next matching item
* Up, Down, Home, and End move within a folder or context menu
* Left and Right arrows select parent or child folders
* Vim enjoyer? Use Mod-j/k for up and down, Mod-h/l for left and right (Mod=Cmd on Mac, Ctrl on PC)
* Enter selects an item to open, Ctrl-or-Cmd + Enter opens a file in a new pane
* Backslash (`\`), the "Context Menu" key, or Alt + Enter opens a context menu for the selected file or folder
* F2 initiates a rename of the current file or folder, Shift+F2 begins a move
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Quick Explorer",
"author": "PJ Eby",
"authorUrl": "https://github.com/pjeby",
"version": "0.2.10",
"version": "0.2.11",
"description": "Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard",
"minAppVersion": "1.5.8",
"isDesktopOnly": true
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
},
"license": "ISC",
"devDependencies": {
"@ophidian/build": "^1.0.1",
"@ophidian/core": "git://github.com/ophidian-lib/core.git",
"monkey-around": "^2.1",
"obsidian": "0.15.9",
"@ophidian/build": "^1.2",
"@ophidian/core": "0.0.24",
"monkey-around": "^3",
"obsidian": "1.3.5",
"redom": "^3.27.1"
}
}
Loading

0 comments on commit f7b1668

Please sign in to comment.