[SUGGESTION] Considering Subfolders as Distinct Completions
CompletedI am warming to the notion of using subfolders for some of my archives, but am finding that the default search/create completion system could be refined a bit to make working with subfolders a little more seamless, and a little less heavy on the arrow keys (and mouse!) to "accept" a folder. Toward that, I propose borrowing from the age-old shell mechanism for doing so.
Here's what I'm getting at: say you have a subfolder called "Working", and you want to jot down a quick note into that folder. So you start typing in "Wor", and chances are "Working/The last subdocument you edited in here.md" is populated into the search field.
This is fine, and I'm not actually proposing anything change about that---because given the unified search/creation ethos, we might just as well want to load that very file, and here it is, ready to go. So instead of changing things so that "Working/" comes up by itself and *then* moves on to recently edited files within Working, I'm proposing that the Tab key be intercepted at "Wor", and used to position the cursor directly after the first path marker, and modifying the selection in the search field so that it now excludes the subfolder we've tabbed through. This is thus only a slight modification of what already happens, only instead of having to manually type out "Working/", letter by letter to get to that point, Tab jumps directly to the next "/".
This may be a bit hard to convey in words, so I've included a simple sequence of screenshots to demonstrate the concept:

1. Manually typed in "Wor".
2. The user hits Tab, the cursor (and selection) advances to the next path level.
3. Without typing anything further, the user hits Tab again, we advance to the file level.
4. And now you can freely and easily type in a new note name.
I am aware that this would replace an existing behaviour, whereby Tab moves from the search bar and into the editor for the currently selected search result. This action however already has the Enter key for it, so it would mostly be a matter of retraining habits to those in the beta that have acclimated to Tab. As a concession, it may not be awkward to have it so that if there are no further "/" found in the string after the cursor point, Tab acts as it currently does. This would also mean that those that do not use subfolders would never even detect a shift in behaviour---but I bet for those that *do* use subfolders, it would be a welcome modification.
-
I implemented a rough draft of this and will experiment with it. I have a couple of folders with multiple subfolders, so it is something that may be useful to me as well.
1 -
The next beta release will offer this.
1 -
Awesome! This is working fantastic, thanks.
0 -
Glad to hear it. Hope all is well!
0
Please sign in to leave a comment.
Comments
4 comments