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

Open UI over a file instead of a note #132

Open
rudiejd opened this issue Jul 9, 2024 · 2 comments · May be fixed by #149
Open

Open UI over a file instead of a note #132

rudiejd opened this issue Jul 9, 2024 · 2 comments · May be fixed by #149

Comments

@rudiejd
Copy link

rudiejd commented Jul 9, 2024

I might just be oblivious here, but is there any simple way to open the DBee UI over a certain file instead of launching the notes folder every time this UI is opened? I would like to use DBee as a REPL for SQL scripts that I'm writing, but they're version-controlled as .sql files and it's inconvenient to copy them into the note files and/or configure all of my SQL repositories as note sources

@rudiejd rudiejd changed the title Open a file instead of a note Open UI over a file instead of a note Jul 9, 2024
@walkabout21
Copy link

This is my use case as well. I end up copying code from my repo into the note to run and then copying back if I need to make edits. Opening and running on an existing sql file would save me a lot of time.

@rudiejd
Copy link
Author

rudiejd commented Oct 3, 2024

I worked a bit on this tonight. I was just naively trying to open a non-note file in the editor, but it appears that the DBee float will always switch back to the buffer of the note in current_note_id. I think it might be a little bit easier to just expose a function that will open a file as a note, creating a namespace for said note based on the folder in which it was found. I will try to put up a PR using that approach

@rudiejd rudiejd linked a pull request Oct 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants