horvathaa / catseye-vscode Goto Github PK
View Code? Open in Web Editor NEWAn annotation system for VS Code - treat your code like Google Doc comments. :-)
Home Page: https://www.catseye.tech/
An annotation system for VS Code - treat your code like Google Doc comments. :-)
Home Page: https://www.catseye.tech/
... even if that is incorrect. Should use startOffset
and endOffset
to ensure we are highlighting the correct phrase.
Currently carousel arrows only appear on hover. Ideally this is more intuitive as the dots indicating snapshots does not appear.
It is also unclear when the carousel decides to wrap around as there is no indication which snapshot/dot is the 'active' one.
Suggestions:
Currently, there is no way to reanchor a snapshot (whether unattachored or attached) while preserving history.
Alongside this, perhaps when we run out of suggested anchor spots, we show "delete" or "reanchor" in the suggestions
I'm writing these down just because they're small issues I consistently forget are an issue, but should be resolved. Please reply to this comment with PR numbers that resolve any of these issues and which issues the PR resolve. Also, feel free to add any small issues you all encounter (bigger issues should still have their own GitHub Issue made for them). These small issues are based off the code at main
currently (i.e., as of PR #39).
Menlo
does not exist in Windows, so font in AnchorCarousel.tsx
looks weird.
Consolas
to font-family
along with Menlo
), but we should double-check that it still looks good on Mac.Hide Suggestions
(the text that appears before the potential anchor reattachment points) should be more like a button
cursor: pointer
to the element either as an inline style or to the class it is a part of)Carousel
such that the drag event is ignored if the user is directly over some text (this seems kind of hard) or disable the dragging feature altogether (not ideal either). Any better ideas here would be great, lol.foo
on a line that says if(foo) {
, the anchor will only show foo
, but the surrounding lines will have all of their content). Maybe this is okay? But it seems a little weird to always show full (sometimes truncated) lines except on the line the user annotated).
surroundingArea.linesBefore
and surroundingArea.linesAfter
have copies of the full line of anchored code at indices surroundingArea.linesBefore.length - 1
and 0
, respectively. We could grab the text at one of those indices and either print the full line, or (better yet) grab that line and find the anchor text within that line and highlight that bright green, and the rest a darker green, as we do with the surrounding code.anno.annotation.length > 0
).element ID
for each annotation component since that's how we scrolled to the corresponding annotation in the annotation list.createdTimestamp
, but other actions that modify an annotation (e.g., replying, adding a new anchor, etc.) do not update that field.
lastEditedTimestamp
field, and update that. Can also use that for sorting by time.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.