It would be really useful to have an optional line number display in the editor — similar to what code editors offer on the left-hand side of the content area.
Why this matters:
As AI assistants become part of everyday workflows, being able to reference specific lines in a document becomes increasingly valuable. Right now, if an AI reviews your document and wants to point you to a specific passage, it has no reliable way to refer to an exact location. With line numbers enabled, it could say something like:
“Take a look at lines 18–21 — that sentence seems unclear.”
This kind of precise, location-aware feedback would make AI-assisted editing significantly more useful.
Suggested behavior:
-
Line numbers could be toggled per object or set as a global preference in settings (maybe a shortcut to quickly toggle it on or off)
-
They would appear in a subtle, non-intrusive column on the left side of the editor
-
When referencing a block with an AI prompt, the line number could optionally be included in context
Real-world use cases:
-
Reviewing long documents or notes with an AI and getting pinpointed feedback
-
Collaborative editing where participants refer to specific sections quickly
-
Proofreading workflows where an external tool flags line-specific issues
Although I understand the wish and I even wish it myself: Line numbers wouldn’t work in Anytype.
You could put the whole “Lorem Ipsum” into a single Block (or the whole Harry Potter novel).
How much lines this Block needs, depends from the width of your screen & window.
Also if the text is splitted into multiple Blocks: it could be mixed with Expanders, Call-outs, Inline-Queries, etc.
Each Expander, Call-out etc. can come with multiple lines. Do they count?
And there could also be a section with a second and third column, with a different length and amount of Blocks/Lines.
And if there indeed another user writes: “Take a look at lines 18–21 — that sentence seems unclear” – what if meanwhile a third user has edited the text above so that the line numbers have changed?
– Programmers know the problem well, that line numbers in the code editor always change.
.
What IMHO would work, are links to Blocks.
If a user writes: “Look at this Block, this sentence seem unclear”, he could put the link to the relevant Block after his sentence and this link would always work, no matter how many new lines was inserted or removed meanwhile.
Wikipedia is a good example: You can not only copy & share the link to the whole page, but also the link that jumps directly to the relevant section inside that page.
– Yes, this is not as fine granulated as line numbers, but what else could work?
@Code-Jack
That’s a fair point — and honestly, it made me realize I should have been clearer in my original post. What I had in mind wasn’t traditional line numbers tied to screen width, but rather block numbers: one number per block, displayed to the left of it.
This is actually how Obsidian handles it — everything on a single “line” (i.e., paragraph) counts as one line, regardless of how it wraps visually. The same logic applies here: one block = one number. A very long block still only gets one number, which is perfectly fine for reference purposes.
Since Anytype is already block-based, assigning a sequential number to each block feels like a natural fit — and it would remain stable as long as blocks aren’t reordered.
Regarding the “link to block” suggestion: I think it works well in one direction — right-click a block, copy its ID or link, paste it into your AI prompt. But what about the other direction?
If an AI responds with “take a look at block [xyz]” — how do you navigate there? Is there currently any way in Anytype to jump directly to a block by its ID or link?
No, there is not such a way.
Exactly that’s why I’ve suggested that as a possible solution: we need links to Blocks.
And this was already often requested in past, with many votes.