Feature suggestion: simplified search/sort
The new relevance search feature is nice, but it makes the GUI more cumbersome because click column heading to search no longer works. Also, the new feature confuses search with sort. Sometimes you want to sort without searching. Here is an idea to get the best of both (relevance search, and simple GUI): Change the "View|Sort notes by" menu item to a toggle: relevance first, or column first. When user clicks on a column heading, sort by that column. If there is no search text, it does a simple sort by that column without searching. If search text has been entered, it does a 2-phase sort. Depending on the menu setting, the sort is either Relevance, Column, or Column, Relevance.
OK, I think its a good idea. I will look at it later.
Currently the sort is done at db level (which was kind of first "hacky" solution, when I wanted to add 2 column sorting). The original sort was done on "model level" - this is still present in the source code, but deactivated. So I think it would be necessary to partially revert the mine solution, then extend the previous "sort provider" with 2 column logic.
I just sent another pull request. I made the "email note" function relative to each note window, instead of app global. It still works globally, but now also works from every note window. Everything users might have done before still works, yet there's now new functionality from each note window.
This is actually a cleaner design anyway since the email function applies to a particular note, not to the application itself.
On 09/18/2018 11:25 PM, Robert Spiegel wrote:
OK, I think its a good idea. I will look at it later.
Currently the sort is done at db level (which was kind of first "hacky" solution, when I wanted to add 2 column sorting). The original sort was done on "model level" - this is still present in the source code, but deactivated. So I think it would be necessary to partially revert the mine solution, then extend the previous "sort provider" with 2 column logic.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robert7/nixnote2/issues/18#issuecomment-422670433, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZyAiWxuxuKqqpfIPkZN-tgJiXC9xKks5uceNygaJpZM4Wsinx.
ok. thanks. In the future if there is new topic, pls just open new issue - so we don't mix sorting with email :) I moved the issue and also writen my comments for further plans.
Is anyone working on this at the moment? I really miss being able to click on a column heading to sort. Is there any easy way to re-enable that in the codebase?
p.s. thanks a ton @robert7 for taking over taking care of this project, I really appreciate it and I'm sure I'm not the only one.
@SethPoulsen Hi, I'm not aware of, that anyone is working on it. And I don't really have time for it. So sorting is of course possible, but not by clicking on column title.
To implement the feature isn't that difficult, so if you find someone who want to do it, then pull request is welcome of course.
Seth, what do you think about my description above how to bring back column header clicks and handle sorting vs searching? Would it be useful for it to work like that?
I've only made a few minor changes to Nixnote so I don't know if I'm up to this bigger change, but I too would like to get column click back so I might try it. We should move this to the right thread. Oh, this is the right thread - silly me.
As a baseline, I really want sort by column back, but the system you describe above (sort by column, then search) sounds great!
Let me know if you need help testing it when done.
Having 2-column sorting (click column A, then column B, sorts by B first, then by A to sort rows that are the same in B) is useful, but complicates this feature. When I get some free time I'll pull down the latest source code and look into this.
That would be cool, but I don't think we need to get that fancy. Just being able to sort by one column at this point would make me pretty happy.