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

read/write textareas #51

Merged
merged 1 commit into from Jan 13, 2021
Merged

read/write textareas #51

merged 1 commit into from Jan 13, 2021

Conversation

joshuahhh
Copy link
Sponsor Contributor

@joshuahhh joshuahhh commented Jan 11, 2021

rudimentary; just getting my feet wet!

inspired by Anil Dash's feature request.

submitting a pull request with TabFS
demonstration: https://user-images.githubusercontent.com/643799/104154300-6be1e480-5399-11eb-8f3e-853a8c817f79.mp4.

the thought arose that this should really be done building off a general "dom tree as file tree" adapter, but actually: 1. there isn't anything like document.querySelectorAll for file trees, and 2. there's no particularly nice way to make one file tree a computed 'view' on another file tree. so that approach has some obstacles.

(btw: this PR is 99% just to share my exploration – no worries if it doesn't make sense to merge this!)

@jtagcat
Copy link

jtagcat commented Jan 11, 2021

blog link is https://http.cat/404

also btw vsc has auto-save for more demo internet points

@osnr osnr merged commit c8f6827 into osnr:master Jan 13, 2021
@osnr
Copy link
Owner

osnr commented Jan 13, 2021

thanks! it seems to work -- I think #40 rears its head a bit here if you shorten the textarea content, and the ID thing would be nice to fix someday, but this is a good start

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 this pull request may close these issues.

None yet

3 participants