Skip to content

Make notmuch-threads view configurable #32

@antinomie8

Description

@antinomie8

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

  1. Use --format=json in a.run_notmuch_search
  2. Expand placeholders in thread_display_format or whatever you want to call it with the values extracted in json
  3. Since the vim regex syntax highlighting will be completely broken by this, use vim.api.nvim_buf_set_extmark for syntax highlighting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions