Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

todo.txt: view mode - Fancy grouping, sort, search etc #859

Open
ramsan10 opened this issue Feb 19, 2020 · 14 comments
Open

todo.txt: view mode - Fancy grouping, sort, search etc #859

ramsan10 opened this issue Feb 19, 2020 · 14 comments

Comments

@ramsan10
Copy link

It is possible in markor to sort the entries in edit mode. This is not very convenient, as it may be desirable to view some ordering for the entries but keep the natural ordering in the file. This is convenient so as older entries are at the end of the file. One possible advantage is for using a version control system for the file, to compare with older files etc.

My proposal is to add a button to sort entries in view mode. Files does not change, only visualization. It should be possible to sort by project, date, priority, etc. (decreasing and increasing)

Also, it would be nice to group by projects.

@gsantner
Copy link
Owner

Feedback from me:

  • View mode is really what is named for, View & readonly. It will stay readonly forever, I wont ever merge or add anything that does modifications in view mode.
  • Grouping/Sorting/Searching in view mode: Unlimited possibilities, just needs somebody that does some css/js and send a Pull Request :-).

@gsantner gsantner added this to the Community Contribution milestone Feb 19, 2020
@gsantner gsantner changed the title todo.txt Sorting and grouping in view mode todo.txt (VIEW) Improve display, add grouping Feb 19, 2020
@ramsan10
Copy link
Author

I agree that view mode should be readonly.

Grouping/Sorting/Searching in view mode: Unlimited possibilities. I also agree.

I would like to help on this, but I cannot, as I do not program css/js extensively.

@gsantner
Copy link
Owner

Adding to this "todo.txt view mode meta task":

  • Feature Request: Multi-level sort for todo Feature Request: Multi-level sort for todo #974 - I would rather suggest to add a proper ToDo "View mode" implementation and have these kind of stuff in represenation only. Where javascript etc can be used to browse todos more appealing. And in turn that view mode, can be like SimpleTasks and others... with fancy sections and stuff. Ehat SimpleTasks etc do is pretty much that, add a layer over the original data.

@gsantner gsantner changed the title todo.txt (VIEW) Improve display, add grouping [meta] todo.txt - proper view mode implementation - Grouping, sorting, fancy view Jun 11, 2020
@gsantner gsantner pinned this issue Jun 11, 2020
@gsantner gsantner changed the title [meta] todo.txt - proper view mode implementation - Grouping, sorting, fancy view [meta] todo.txt - fancy view mode - Grouping, sorting Jun 11, 2020
@gsantner gsantner changed the title [meta] todo.txt - fancy view mode - Grouping, sorting [meta] todo.txt - fancy view mode - Grouping, sorting, searching etc Jun 11, 2020
@the0s0ph1st
Copy link

the0s0ph1st commented Nov 22, 2020

The app has a Table of Contents option for Notes, can we have it for Tasks? The change needed to make it work is to tie Table of Contents with Sort. For example, if Sort by Context is selected, then opening Table of Contents will list the available contexts in todo.txt, and selecting a context will place the cursor at the first item (or even last item, if there is an appropriate option in Settings) with the context.

@gsantner gsantner changed the title [meta] todo.txt - fancy view mode - Grouping, sorting, searching etc todo.txt: view mode - Fancy grouping, sort, search etc Dec 3, 2020
@tengucrow
Copy link

Maybe another suggestion - filters by context / projects / priorities. Nice realization in Simpletask - you can view/hide any tasks which is convenient when there are one or two hundreds of them.

@gsantner
Copy link
Owner

gsantner commented Feb 8, 2021

Yup. By the way edit mode has this implemented already, long press context/projrct/priority button.

@tengucrow
Copy link

Thanks. This works like markdown content - very useful. In the meantime, while writing I realized that there is may be more effective method: not a single todo.txt, but rather bunch of *.todo.txt files splitted by contexts (look at image). The markor is perfect for it.
Now test drive it "in the field" :)

Screenshot_2021-02-09-06-27-19-436_net gsantner markor

@harshad1
Copy link
Collaborator

With the latest improvements to filtering by context and project, I feel that maybe we don't need a view mode for Todo.txt at all.

Instead, we should replace the view mode button with a filter button which will give the use the ability to do (one of)

  1. Filter by context
  2. Filter by project
  3. Filter by due date
  4. Filter by priority

All filtering will be done in search dialogs (which now support highlighting ) and in edit mode so the user can quickly select the filter results and perform an appropriate action (for example: mark as done)

What do you think?

@ramsan10
Copy link
Author

ramsan10 commented Jul 19, 2021 via email

@harshad1
Copy link
Collaborator

To some degree. We have the ability to filter by context and project without modifying the underlying file right now. There will be some significant improvements to this in 2.8.

What I am proposing is that we extend this to due date and priority. The 'view' will be in a dialog similar to the search dialog.

Selecting multiple tasks for modification does involve modifying the underlying file in some case - if you select multiple non-contiguous tasks for editing, they will be grouped and moved to the top of the file for selection.

@gsantner
Copy link
Owner

gsantner commented Jul 19, 2021

Instead, we should replace the view mode

I disagree, especially for export&pdf "view mode"/html is required.
Where we develop more is not relevant to that though.

@harshad1
Copy link
Collaborator

Where we develop more is not relevant to that though.

We could put all this functionality under search.

So search icon will open a dialog with the following options:

  1. Search <- Existing search dialog
  2. Context <- Existing search by context dialog
  3. Project <- Existing search by project dialog
  4. Due date <- New filter by due date dialog
  5. Priority <- New filter by priority dialog

Each will take you to the appropriate dialog

@harshad1
Copy link
Collaborator

Once the checkbox multi-select is merged, I can implement this pretty easily.

@harshad1
Copy link
Collaborator

harshad1 commented Aug 7, 2021

@ramsan10

You can check out the filtering system here https://github.com/gsantner/markor/actions/runs/1108313641

Activate it by clicking on the title. Feedback would be appreciated

@gsantner gsantner unpinned this issue Sep 25, 2021
Repository owner deleted a comment from harshad1 Oct 4, 2021
Repository owner deleted a comment from harshad1 Oct 4, 2021
Repository owner deleted a comment from harshad1 Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants
@harshad1 @gsantner @tengucrow @ramsan10 @the0s0ph1st and others