The discussion revolves around improving keyboard navigation in Discourse, specifically the behavior of the K hotkey for selecting posts. seanblue initially requested that the E hotkey (for editing) work on the currently visible post even if it isn’t explicitly selected. However, codinghorror and Stephen argued that this would be unexpected, as actions like editing should require a clear selection. seanblue clarified that the real issue was the unintuitive behavior of K, which fails to select the first visible post unless fully in view. sam supported this, advocating for K to select partially visible posts. dan implemented the change, updating the selection logic so K now selects the first partially visible post, a fix sam praised.
There is an E hotkey to edit a post. However, this only works if the post is “selected” by using the J or K hotkeys. I think it would be a huge improvement to have the E hotkey edit the current post (= the one in the URL / topic timeline) even if it hasn’t been selected using J or K.
People are used to having a selection target before object based actions become active.
Nobody wants a file manager which throws up a delete dialog if an object isn’t explicitly specified, why have an edit dialog before specifying what you want to edit?
I was considering the post “selected” when it’s the number in the URL / post timeline, but I get your point. Doing what I requested would definitely go against expectations here.
I see now that I’m asking for the wrong thing. The case that prompted this request is when I’m looking through a long wiki post (generally first post), and therefore I’d have to scroll a bunch more to click the edit button. The problem is that both J and K select the second post, not the first, even when I’m barely scrolled into the first post. This kind of makes sense for J since it’s supposed to select the next post. But for K I think it would make more sense to select the current post (given that none has been selected yet). The current behavior means that I have to do J (or K) then K then E to edit the post I’m currently viewing. Ideally I’d like to be able to edit the post by just doing K then E. I know it’s only one key less, but the current behavior (for K in particular) is unintuitive.
Hopefully that makes sense. If not I can try to take a video since it’s hard to demonstrate with screenshots.
Yeah I think we should either re-title this topic or do a new one, I agree completely that K has surprising behavior. It should select the first visible post even if it is only partially visible.
Or in visual form if I hit K and the screen looks like this: