gsantner / markor

Text editor - Notes & ToDo (for Android) - Markdown, todo.txt, plaintext, math, ..
https://github.com/gsantner/markor/discussions/2269
Other
3.81k stars 366 forks source link

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

Open ramsan10 opened 4 years ago

ramsan10 commented 4 years ago

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 commented 4 years ago

Feedback from me:

ramsan10 commented 4 years ago

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 commented 4 years ago

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

the0s0ph1st commented 3 years ago

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.

tengucrow commented 3 years ago

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 commented 3 years ago

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

tengucrow commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

The idea to filtering and ordering in view mode was that we wanted to view the information in different ways without modifying the underlying txt file. Is it possible to do it now with your proposal?

RR

Missatge de Harshad Vedartham @.***> del dia dl., 19 de jul. 2021 a les 8:18:

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?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gsantner/markor/issues/859#issuecomment-882271882, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFCMFB6W5JBEJBN2MJK4GTDTYO7SLANCNFSM4KYAIE4Q .

harshad1 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

harshad1 commented 3 years ago

@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