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

Links #9

Open
stefanvanburen opened this issue Mar 21, 2024 · 0 comments
Open

Links #9

stefanvanburen opened this issue Mar 21, 2024 · 0 comments

Comments

@stefanvanburen
Copy link
Owner

stefanvanburen commented Mar 21, 2024

In general, I think it should be easier to go from buftui → the BSR UI, because I doubt buftui will ever be as fully-featured as the actual UI, and while it's nice to browse about in the TUI a user will ultimately end up in a situation where they want to get to the analogous view in the UI. There's a few things we can do to make this easier:

  • Most views should support an o (open) action that uses the browser package to open the most relevant URL to the view at that time. (edit: split off to Add "Open Browser" support #73)
  • We may also want to support something like a y (yank), l (link), or c (copy) verb to just copy the URL to the clipboard instead; I lean towards y since it's less likely to clash with other verbs, but maybe not.
  • Lastly, it'd be nice if the TUI supported OSC 8 hyperlinks for things, although I'm a little fuzzier on this; if we did this, we'd remove the ability for mouse clicks to do things within buftui (e.g. clicking on a table row opens the row). Maybe just for things like headings, but that'd mean we'd probably want to also change our headings to at least vaguely look like links or references for discoverability (think changing Modules (Owner: xyz)buf.build/<xyz> and that link opening https://buf.build/<xyz>).
stefanvanburen added a commit that referenced this issue Apr 6, 2024
Ideally we'd be able to introspect the format of the strings from the
protobuf files, but for now just hardcode the length.

This is a shortcut for introducing proper terminal clipboard support
(see #9).
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

No branches or pull requests

1 participant