Currently the notmuch-threads view results are directly shown from the output of notmuch search. What could be done instead would be using notmuch search --format=json to be able to display the results in another manner; e.g. with the authors and subject first, then the tags and the date last, for example. It could be configured using an option containing placeholders for the data extracted from notmuch search. In addition, it would also bring some of the benefits mentioned by @yousefakbar in #31.
Changes required
- Use
--format=json in a.run_notmuch_search
- Expand placeholders in
thread_display_format or whatever you want to call it with the values extracted in json
- Since the vim regex syntax highlighting will be completely broken by this, use
vim.api.nvim_buf_set_extmark for syntax highlighting
Currently the
notmuch-threadsview results are directly shown from the output ofnotmuch search. What could be done instead would be usingnotmuch search --format=jsonto be able to display the results in another manner; e.g. with the authors and subject first, then the tags and the date last, for example. It could be configured using an option containing placeholders for the data extracted fromnotmuch search. In addition, it would also bring some of the benefits mentioned by @yousefakbar in #31.Changes required
--format=jsonina.run_notmuch_searchthread_display_formator whatever you want to call it with the values extracted in jsonvim.api.nvim_buf_set_extmarkfor syntax highlighting