Skip to content

Conversation

@igorlfs
Copy link
Owner

@igorlfs igorlfs commented Apr 26, 2025

Related #33

Preview

image

Drawbacks

  • UI inconsistencies with the scopes view. The scopes view has some advantages when it comes to folding. More specifically, <CR> can be used for both collapsing and expanding, which is something I currently have no idea how to do. Might figure this out, but I've been thinking about upstreaming this feature (if appropriate), so this wouldn't be an issue. Also, indent-based collapsing isn't as cool as the alternative.
  • Some actions only apply to expressions themselves, and not their inner variables. That's the case for:
    • copy => Can't copy variables. That's no biggie, I guess, since now we can properly move around and copy them directly
    • variables aren't highlighted when their value change, only expressions. I think this would be somewhat annoying to implement, so leaving it out from this initial implementation Done

Follow-up

Tracked by #33.

@igorlfs igorlfs mentioned this pull request Apr 26, 2025
6 tasks
@igorlfs igorlfs force-pushed the feat/watches-rewrite branch from 1910fa8 to 27f94c4 Compare April 27, 2025 17:21
@igorlfs igorlfs changed the title feat: watches rewrite feat: watches rewrite Apr 27, 2025
@igorlfs igorlfs marked this pull request as ready for review April 27, 2025 17:29
@igorlfs igorlfs force-pushed the feat/watches-rewrite branch from 19f29f7 to 9b6335c Compare April 27, 2025 22:30
top level variables

improve handling of errors

refactor: no need for stopped_thread_id state

feat: colors, handle deleting expressions

feat: edit expressions

refactor: simplify implementation by indexing with strings

The downside is that the ordering is kinda awkward, but that's fine by
me

feat: update and highlight changed expressions

refactor(watches): cleaner eval variables

feat: allow collapsing via foldmethod = indent

feat: copy expression to clipboard

chore: appease type checker

feat(watches): highlight updated variables

some fixes for keymaps

chore: add type annotation

update docs
@igorlfs igorlfs force-pushed the feat/watches-rewrite branch 2 times, most recently from b3221d9 to 277be0c Compare April 27, 2025 22:57
@igorlfs igorlfs force-pushed the feat/watches-rewrite branch from 277be0c to 058e34d Compare April 27, 2025 22:58
@igorlfs igorlfs merged commit ca7906a into main Apr 27, 2025
2 checks passed
@igorlfs igorlfs deleted the feat/watches-rewrite branch April 27, 2025 23:12
@igorlfs
Copy link
Owner Author

igorlfs commented Apr 27, 2025

UI inconsistencies with the scopes view.

Besides the folding situation, nvim-dap's presentation is slightly different. For instance, it uses : instead of =. I hope no one is really bothered by that.

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.

2 participants