Previous and Next note keyboard shortcuts
CompletedIn nvAlt I would use command-j and command-k to navigate between notes in the current list of available notes (determined by my current search). I couldn't find any docs or menu-items which showed what keys to use in nvUltra for navigating the items in the left-note bar... Maybe I just missed them? If not, that would be a welcome keybard-shortcut, as I use it all the time!
-
Up/Down arrows work, as well as the various Cmd-Shift-Option modifiers that work in macOS tables by default.
0 -
Ah ok, great! I will see if there is a way to bind/change those defaults in the os-preferences, or I'll have to spend some time unlearning my muscle memory! :)
Thanks for replying!
0 -
Interesting -- one nice thing about the command j/k is that I didn't have to be in the "context" of the search bar to move the "selection" -- to use the arrow keys I have to reselect the search bar before the arrow keys can be used again. I couldn't find a command/control/option/shift combo with the arrows keys that allowed me to change the current note without changing out of the note-editing-context.
2 -
I was wondering if there are any plans to add these shortcuts, or if it's a design choice to leave them out? The vim-style, home row shortcuts for file navigation in nvALT were one of my favorite features.
I remember this being something that sold me on nvALT early on (I looked back and saw ⌘-J and ⌘-K are prominent in the "What it is" of the nvALT website), so I just wanted to give a +1 and ask if this is something we can look forward to.
0 -
No current plans for this. You can already type Cmd-L to immediately jump to the notes list, where you have access to up/down, page up/page down, as well as "go to top" and "go to bottom."
At some point adding 50,000 different key combinations (yes, I realize I am exaggerating... ;) that all do slight variations on the same thing makes it harder to easily learn the combinations that exist. It also makes software more intimidating for new users who see a long list of options and have no idea where to start.
0 -
I would have really loved to see Ctrl+j/k preserved as well.
Is it possible to add a menu item for Previous Note / Next Note? If those exist, then OS X keyboard shortcuts could bind Ctrl+j/k to those menu items (up to the user to do this).
1 -
For what it's worth if anyone else is hankering for the vim-style shortcuts I created a workaround using an application called Hammerspoon and this lua script.
-- Create a key shortcut mode for when nvUltra is given focus
nvultraKeyMode = hs.hotkey.modal.new(nil, nil)
-- Alert when entering/exiting mode
function nvultraKeyMode:entered()
hs.alert('Entered nvUltra mode')
end
function nvultraKeyMode:exited()
hs.alert('Exited nvUltra mode')
end
-- Manually escape mode
nvultraKeyMode:bind(
'', 'escape',
function()
nvultraKeyMode:exit()
end
)
-- Map CMD + k,j to up/down
nvultraKeyMode:bind(
'cmd', 'k',
function()
hs.eventtap.keyStroke({}, 'up')
end
)
nvultraKeyMode:bind(
'cmd', 'j',
function()
hs.eventtap.keyStroke({}, 'down')
end
)
-- Activate/deactivate mode when nvUltra is activated/deactivate
function watcherFn(appName, appEvent, app)
if string.sub(appName, 1, 7) == 'nvUltra' then
if appEvent == hs.application.watcher.activated then
nvultraKeyMode:enter()
elseif appEvent == hs.application.watcher.deactivated then
nvultraKeyMode:exit()
end
end
end
-- Start an application watcher to handle activation/deactivation events
watcher = hs.application.watcher.new(watcherFn)
watcher:start()0 -
Just chiming in to say I also really miss the ⌘J ⌘K shortcuts from nvALT. I was pretty surprised they didn't get carried over. I used those all the time since they enable me to navigate the sidebar without leaving the note editing field.
0 -
Hi Fletcher Penney. I just started using Beta 2. To me, Arrow Up/Down is inferior to Cmd+J and Cmd+K for cycling through the notes. The user invokes Cmd+L to search/create, then Cmd+J and K to jump through the notes till finding the right one to enter. The arrow keys, by contrast, are very far away from Cmd+L and the rest of the letters on the keyboard, which is where I want to be once I'm in the note and ready to type. I know other people's shortcuts seem like a waste of one's time to implement, but I would really appreciate being able to use this one in particular — it's so fundamental to the nv experience for me and is a dealbreaker for upgrading from nvALT.
1
Please sign in to leave a comment.
Comments
9 comments