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

TextView libray entry #277

Closed
sonnyp opened this issue May 24, 2023 · 0 comments · Fixed by #315
Closed

TextView libray entry #277

sonnyp opened this issue May 24, 2023 · 0 comments · Fixed by #315
Assignees

Comments

@sonnyp
Copy link
Contributor

sonnyp commented May 24, 2023

Description

GTK has an extremely powerful framework for multiline text editing. The primary objects involved in the process are GtkTextBuffer, which represents the text being edited, and GtkTextView, a widget which can display a GtkTextBuffer. Each buffer can be displayed by any number of views.

We should have a demo demonstrating usage of TextView, in a ScrolledView with a lot of text.

With a few buttons

  • Select all
  • Copy
  • Paste (at the cursor)

You can find some code examples here https://github.com/sonnyp/Commit/blob/a2dfeddd38ed96bbd0f4ce29fb6a1bc5b215ee44/src/editor.js

Workbench itself also makes use of these (SourceView extends TextView)

Bookmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants