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

feature: persistence / save to file #630

Open
1 task done
Noneangel opened this issue Mar 10, 2025 · 0 comments
Open
1 task done

feature: persistence / save to file #630

Noneangel opened this issue Mar 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Noneangel
Copy link

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

@Noneangel Noneangel added the enhancement New feature or request label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant