8000 Allow copying values selected trace values and horizontal scroll · Issue #394 · gtkwave/gtkwave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow copying values selected trace values and horizontal scroll #394

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
B83C opened this issue Dec 6, 2024 · 5 comments
Open

Allow copying values selected trace values and horizontal scroll #394

B83C opened this issue Dec 6, 2024 · 5 comments

Comments

@B83C
Copy link
B83C commented Dec 6, 2024

The title is self evident. Maybe make the delimiter configurable for copied trace values.

@tbybell
Copy link
Collaborator
tbybell commented Dec 6, 2024

It's not as self-evident as you think. :-)

Please state exactly what you want. If it's that you desire the value at the primary marker, see View->Show Mouseover and View->Mouseover Copies to Clipboard.

I don't know specifically what you mean by horizontal scroll. There is plenty of horizontal scrolling function for various usage cases in there, but you don't say what yours is, thanks.

@B83C
Copy link
Author
B83C commented Dec 7, 2024

Sorry for being unclear. Yeah, what I mean was copying a bunch of selected values to clipboard instead.
image
For instance, I would like to copy values of the highlighted entries with ease, giving me smth like this: 01 02 01 01 C2 01... Would be nice to have the element delimiter configurable (i.e. comma separated, or smth of the user's interest).
Also, regarding horizontal scroll, I meant scrolling with mouse and key modifiers (i.e. shift + scrll up/down to scroll horizontally) cuz I find it rather annoying to reach out for the scrollbars on a small screen. Would be better if keyboard navigation is added.

@tbybell
Copy link
Collaborator
tbybell commented Dec 8, 2024

A mouse with a scroll wheel has worked for me for forever and it's how I use gtkwave on my day job. The mouse is context sensitive to the vertical vs horizontal direction of scroll for signals vs waves panes. What system (specifically) are you running gtkwave on? It works for me even through a couple of levels of indirection: my work laptop is a Windows 10 machine that runs Citrix into another Windows machine which is running an x server connected to a Linux development machine. :-)

From the keyboard, menu options Time->Shift/Page are keys Alt-5/6 and Alt-7/8 which a left/right shift and page respectively. Those are programmable using the gtkwaverc file seen in examples/ in the source distribution. (Rename the file to .gtkwaverc and copy it to your home directory is easiest.)

For the clipboard copy, I'll look at it and some other versions of it. Any of those GUI data harvesting operations are pretty easy to do: it's more effort to figure out what to do compared to sitting down and coding them. It's the kind of thing that could probably even be done with a straightforward Tcl script, but gtkwave doesn't yet have the ability to have hotkeys bindings to kicking off individual Tcl scripts.

What is your current usage case for these values? Generating documentation or something more involved?

@B83C
Copy link
Author
B83C commented Dec 29, 2024

This is weird, scroll wheel only works for me when I hover my cursor over the scroll bar. And I am on Arch linux (sway) using version 3.4.0. I was coding up some compression algorithm and had to test the compression result. I know extracting the values directly from gtkwave would be cumbersome, but I was a bit lazy to write a test in C to do it programmatically. But anyways, that would be a handy feature to have. Now on linux, I feel that the interface is kinda unfinished. That is, in addition to the issue I mentioned above, common keybindings like ctrl+a doesn't select all the entries in the wavepane, etc. Can't recall all the issues I faced. But yeah, it is a good project after all. I'd love to help but only after I find some time after this semester ends.

@tbybell
Copy link
Collaborator
tbybell commented Dec 29, 2024 via email

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

2 participants
0