-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 Request] Add ability to edit files i.e. with NVIM #42
Comments
This is coming! (eventually). I've had my eye on this feature for a while - that's why I recently refactored browsr to be more modular. It wouldn't be NVIM - instead it's a textual (the underlying framework behind browsr) widget called TextArea. It will improve the code viewing experience too as it supports things like text highlighting. It will even support (some) remote filesystems. I'm specifically waiting on more languages to be supported by syntax highlighting for this (Textualize/textual#4160). As far as the UX is concerned I was thinking about an |
Sounds good. However many people prefer their own editors NVIM/EMACS
because they are set up like mine for language parsing I would suggest
making that an option.
Regards,
Don
…On Mon, Mar 4, 2024 at 4:20 PM Justin Flannery ***@***.***> wrote:
This is coming! (eventually). I've had my eye on this feature for a while
- that's why I recently refactored browsr to be more modular.
It wouldn't be NVIM - instead it's a textual
<https://github.com/textualize/textual/> (the underlying framework behind
browsr) widget called TextArea
<https://textual.textualize.io/widget_gallery/#textarea>.
It will improve the code viewing experience too as it supports things like
text highlighting. It will even support (some) remote filesystems.
I'm specifically waiting on more languages to be supported by syntax
highlighting for this (Textualize/textual#4160
<Textualize/textual#4160>).
As far as the UX is concerned I was thinking about an E keyboard shortcut
that launches you into editing mode in a new window. It'll probably be more
similar to nano than vim - since that's what I know and I'd like it to be
pretty simple.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6Z4V6QYN5UXCBIY5M3K7Y3YWTQQVAVCNFSM6AAAAABEF34MGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGQ3TKNZXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Fair enough, but figuring out how to implement NVIM/EMACS inside a Python process run by textual will likely be prohibitively difficult. I typically have to work with existing "widgets" that are already in the textual ecosystem, like the built-in Invoking NVIM/EMACs via a shell plugin (#44) is probably a cleaner path for this. |
Yeah this is what I was imagining. It would call $EDITOR and pass the
filename Or via a settings option. I was not expecting you to do
something within this framework.
…On Mon, Mar 4, 2024 at 6:00 PM Justin Flannery ***@***.***> wrote:
Fair enough, but figuring out how to implement NVIM/EMACS inside a Python
process run by textual <https://github.com/textualize/textual/> will
likely be prohibitively difficult. I typically have to work with existing
"widgets" that are already in the textual ecosystem, like the built-in
TextArea.
Invoking NVIM/EMACs via a shell plugin (#44
<#44>) is probably a cleaner path
for this.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6Z4V6R4MCTJYD32BYOEQNTYWT4JPAVCNFSM6AAAAABEF34MGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZXGYYTOMZZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@juftin Apologies for barging in, and perhaps I've misread this, but it should be pretty straightforward. |
Thank you Dave - no need to apologies! I love having your textual knowledge on stuff like this. I actually stumbled on the concept of suspending the context manager after looking into this - this is an awesome solution to this. Ideally I'd be able to do this with the |
Sure thing, I thought it worth a mention just in case. Should be useful for those who prefer |
I really like the look and remote capabilities. It may not be possible for remote connections, but for local files the ability to browse and do quick edits would be amazing
The text was updated successfully, but these errors were encountered: