Skip to content

feature: persistence / save to file #630

@Noneangel

Description

@Noneangel

Did you check the docs?

  • I have read all the trouble.nvim docs

Is your feature request related to a problem? Please describe.

When I close Neovim, the view is lost. I often edit a view using delete (dd), or trouble_add

trouble_add = { action = M.wrap({ type = "smart", add = true }), desc = "smart-add-to-trouble" },

The view act as my to-do list. But noevim crash some time, so the editions made to the view are lost.

Describe the solution you'd like

An API like require("trouble").save(filename, opts) to save a view to a file.

Describe alternatives you've considered

Use quickfix list with romainl/vim-qf plugin. But it is hard to keep it in sync with trouble.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions