feat: allow opening files as temporary notes#149
Conversation
|
@kndndrj could you please take a look when you get a chance 🙏 ? I've been using this fork locally, but it definitely isn't perfect. I'd like to come up with a good way for reading files in dbee, since most of my SQL workflow involves editing |
|
Just come looking for this, most of the sql I write for my new job is altering migrations or stored procedures |
| -- a bit shitty | ||
| self.notes["global"] = self.notes["global"] or {} | ||
| self.notes["global"][file] = s |
There was a problem hiding this comment.
as you seem to have concluded, putting it under the global notes doesn't really feel great. maybe this is a good place to add a third context for "project" or something like this. that name indicates that its connected to the current repo in some way. that makes more sense if dbee could scan for compatible file types such as all files with the .sql extension, but still works for opening a single file i think :)
Problem: I work in a repository that contains version-controlled SQL migrations. In order to edit and test these
.sqlfiles innvim-dbee, I have to copy and paste between annvim-dbeenote and a secondary window for the buffer in the.sqlfile.Solution: Allow opening files as "temporary notes". These files won't re-appear when neovim is closed and re-opened. I could also make that happen, but I suspect it would involve creating some sort of symlink in the global note namespace, and I wasn't sure whether that was desired.
Closes #132