mirror of
https://github.com/ciur/papermerge.git
synced 2026-04-26 04:25:54 +03:00
[GH-ISSUE #15] Automatically sort by alphabet - feature request... #9
Labels
No labels
2.1
3.0
3.0.1
3.0.2
3.0.3
3.0.3
3.1
3.2
3.2
3.3
3.5
3.x
Fixed. Waiting for feedback.
Fixed. Waiting for feedback.
UX
Version 2.1 - alpha
XSS
announcement
beta
blocker
bug
cannot reproduce
confirmed
confirmed
critical
demo
dependencies
deployment
detchnical debt
discussion
docker
documentation
donations
duplicate
enhancement
feature request
frontend
fundraising
good first issue
good issue
help wanted
high
implemented
important
improvement
incomplete
invalid
investigation
kubernetes
low
low impact
medium
medium
medium impact
migration from 2.0
migration from 2.1
missing-language
missing-ocr-language
no-activity
note
ocr
outofscope
packaging
performance
popular request
pull-request
pypi
question
raspberry pi
roadmap
search
security
setup
status
task
technical debt
updates
user xp
version 1.4.0 - demo
will be implemented
will not be implemented
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/papermerge#9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fumunda on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/ciur/papermerge/issues/15
Me again.
I was curious if you could add a default setting to sort everything alphabetically automatically. I know we have the option to sort that way, but the default sorting is in whatever order you added folders or files.
@ciur commented on GitHub (May 12, 2020):
It is fairly easy to do it.
Long story short, I think it is an excellent feature - with the difference that there will be no "option". Instead application will just remember the last state.
Longer version:
Instead of adding a setting or configuration of this feature, I think it would be a better idea to save the last state. So that if you sorted last time by "sort by date - ascending", all subsequent displays in same (or other) folders will be with "sort by date - ascending".
This way you will still have to chose preferred sorting type - but only once.
If you would be more interested in "sort by date - descending", display files and folder with letter Z first, just sort it that way once, and all subsequent displays will be with "sort by date - descending".
In preferences there is an option to save view as "list" or "grid". I think this option is redundant. Similar way to sorting, application just needs to remember the last state the user used.
Also, there should be a checkbox displayed of current sorting "mode".
I will take care of this soon.
@fumunda commented on GitHub (May 12, 2020):
I like that idea. I can set it how i want and it will remember. Sounds good!
Thanks again!
@ciur commented on GitHub (May 16, 2020):
I fixed the issue.
You'll need to use latest papermerge docker image tagged 1.2.2.
Also, make sure you force refresh browser page so that it will not use cached version of latest javascript file.
Last sort type (i.e. if you sorted by title asc/desc, date asc/desc etc) will be saved into a cookie titled "save_last_sort". When you browse files/folders, that cookie will be sent to server side, and based on it, results will be returned.
Server-side changes
Client-side changes - js code
Latest docker image
@fumunda commented on GitHub (May 18, 2020):
Awesome thanks! I will update and let you know how things go.
@fumunda commented on GitHub (May 19, 2020):
Worked great. Thanks for the added functionality. Consider this closed.