Option to disable link ellipsizing / show full link text

Is your feature request related to a problem?
When adding a link, they are automatically truncated if they are longer than some arbitrary ammount, regardles of if there is space to render the full text

Describe the solution you’d like
The link should fill the available space rather than truncating regardles of available space

Give us a real world use case for this feature
take this screenshot for example


there is more than enough space to render the rest of this link, however it still gets truncated regardles.

Do you mean “truncate” where you say “concatenate”? :slight_smile:

yeah i do, sorry. ill edit the post to reflect what i actually mean

WHAT DO YOU RECOMMEND

Add the ability to display full title in the inline links. For pages, it should be title, and for notes it could be till first line-break. I would prefer if this was the default option (only option) but having a toggle to turn it on or off would also work.

HOW COULD IT BE DONE

Turn this option/behavior on by default, so whenever we use @ to link to an AnyType Object, it displays the full title text of the object, instead of the truncated one.
We could also introduce a toggle or app level setting which turns this behavior on or off.

REAL WORLD USE CASES

If we are using inline links during writing and create links to various notes that relate to what we are talking about, we need a view that should allow us to see the whole picture of the argument without having to go to another connected note.

For example:

In the above example, the first option is the default behavior of inline links as of now. We can clearly see that it truncates the title of the page. Furthermore, upon hovering over the link, the full title of the page is still not being shown.

The second option shows that having a “Link to Object” option works in this case, but it is not inline now, it’s a new block, and furthermore, if the title is longer than the page width, it’ll get truncated again. I’m showing here just for reference. This is not the workflow that we require.

The third option is what I want, the ability to display the entire title of the page inline (with icon of course). I’ve just underlined that text here to showcase how it would look like.

WHAT DO YOU RECOMMEND

When linking object inline, it is always ellipsized (truncated) at about 30 letters length

HOW COULD IT BE DONE

Inside formatting menu, add a new option - checkbox to toggle text ellipsizing (truncating)
Or add an option to specifiy character/word count after which text is ellipsized.

REAL WORLD USE CASES

In some cases it is hard to distinguish links when they start with the same text and then get ellipsized.
In those cases it is better to disable ellipsizing altogether.

Another use case for this is when the title of an object is meant to be used as part of a sentence in other places. For example, I collect quotations, like this one:

“It is a mathematical truism, however, that the more generally a theorem applies, the less deep it is.”

And I give my quotes titles that describe what they’re about. In this case, On the relation between the generality and deepness of mathematical theorems.

The idea is that elsewhere in my notes I can write something like

Many pithy remarks about the nature of mathematical knowledge have been made over the centuries, such as Paul Halmos’s statement On the relation between the generality and deepness of mathematical theorems.

This is useful whenever I don’t want to actually place a quote in my notes, a common occurrence when the quote is several sentences or a few paragraphs long.

Except it isn’t, because instead I get On the relation between the gen….

I wonder why is it even ellipsized. :thinking:

After all, I choose the title of my notes. If it is long, it’s because it must be. If I wanted it shorter, it wouldn’t be long.

I think this is really a necessary FR, and I’m glad to see it’s in status “Planning” :slight_smile:

I posted a more general suggestion to a closely related FR here in this comment, where I suggest a “full-size” preview layout for Links to optionally render as much content from the target object as possible, in order e.g. to embed the full quotation object, regardless of its length. In your case, this could look like this I Anytype:

On the relation between the generality and deepness of mathematical theorems
“It is a mathematical truism, however, that the more generally a theorem applies, the less deep it is.”

Or alternatively, by varying the preview attributes to show for this link, one could set it to just render the bare content without Description:

“It is a mathematical truism, however, that the more generally a theorem applies, the less deep it is.”

And so on. The idea is that such an ability to show entire objects inline would appear technically much less complex than a full implementation of transclusion that’s frequently being asked for, while delivering part of transclusion’s huge benefits: also to show e.g. tasks, diary entries, books or movies as fully embedded objects rather than as concateneted links, database fields or gallery elements.

I don’t think this should be an option, it should be the default. If a user doesn’t want to display to fill title, they can hyperlink a piece of text (select some text > link > select object to link), instead of using the @ command.

To be honest, if this kind of small things become customizable, the settings menu will be huge and very hard to navigate except for Anytype experts. This feels like the kind of things that shouldn’t be a toggle; it should simply behave differently (display the full object title).

A good use case for this is a daily, weekly, monthly journal that would tie in with other notes. Say you were writing in your journal and you had a prompt in your head that you needed to do something. You could easily create a task. Or you wanted to create a note on a topic to expand on later. Using the ellipse hides the full content when the text used is actually the title of the note. To do lists are a great example of this.

WHAT DO YOU RECOMMEND?

When I add a link to an object using a “@” mention, the title of the object is truncated (with an ellipsis) if it’s long:

Please add a setting to allow users to forgo truncation of mentions.

HOW COULD IT BE DONE?

A toggle in the “Manage Space” menu:
Object Titles
Truncate long titles? OFF(0-)ON

REAL WORLD USE CASES

This is a problem when a user depends on the info in a long title.

One workaround is to use a link block, but this has its own significant problems:

  1. Link blocks (until recently?) look like normal text.
  2. Link blocks can only exist as their own blocks – they cannot be part of a block, or on a bullet point.

Another workaround is to hover the mouse over the title, which will then reveal the full title. But:

  1. This is desktop only
  2. If the user is scanning a long list of similarly-titled objects, this is impractical.

RECOMMENDED ALTERNATIVES

I would be happy if Anytype never truncated titles, but I assume it’s like that for a reason.

I can’t add anything else to what has already been suggested by other users, this truncating should be entirely optional, at least inside objects and also preferably inside the graph map.

My workaround inside objects it’s to write the full name with normal text above the truncated link, like this:

-Title of a page which is longer than 6-7 words, getting truncated

@Title of a page which is ... [truncated from this point on]

But this workaround isn’t possible inside the graph map, which only includes the object names.

I don’t know for others, but for me this isn’t a minor annoyance but a major impact in usability, specially in the graph map, because I can’t fully identify many objects with similar names from their titles until I open them.

What’s The Bug?

On an iPad, when the task is displayed inline, the title of the task is truncated despite plenty of horizontal space still available on the screen.

How To Reproduce It

  1. Create an inline task with /Task
  2. Give the task a sufficiently long title
  3. On an iPad, observe the page on which the inline task has been created and notice that the title is truncated with three dots despite plenty of space in the line being available

Image or Video


The Expected Behavior

The text uses all available horizontal space on the screen, being truncated only at the right edge of the screen (if necessary).

Additional Context

As the two screenshots illustrate, this is happening regardless whether the task is formatted as text or a tile. This is also happening in the iPhone, but it is less significant since the width of the iPhone is much less than the iPad.

Device

Device: iPad Pro (10.5-inch)

OS

iOS 17.5.1

Anytype Version

0.32.0

Network Mode

AnySync

Technical Information

Device: iPad Pro (10.5-inch)
OS version: 17.5.1
App version: 0.32.0
Build number: 29
Library version: v0.35.0-rc11
Anytype ID: A9zbFQiMNt7u57eTzA7Tpgwt2MdqSDVUQYtju8Z2sD3PNHGB
Device ID: 12D3KooWDv8nznVkPeAR3A6K2xyM8kZyPTRFcywsW4srpuDPn3nL
Analytics ID: 57a863f5-6332-4088-9d3f-10d14daa5b21

WHAT DO YOU RECOMMEND?

I would like to see more of a page’s title when it is linked in another page, currenlty it is limited to approximately 30 characters

HOW COULD IT BE DONE?

Set the caracters cutoff to around 100 characters or even 130 characters

REAL WORLD USE CASES

See screenshots : Notion does not limit linked pages to include more characters (100 characters is fine) but Anytype cutoff is less than 30 it seems ant it makes link often unreadable without clicking on them

MAny titles are more than 30 characters so really this limit seem too low for many uses

RECOMMENDED ALTERNATIVES

No alternative

Anytype example : around 30 characters is the limit for the link

Notion example : above 100 characters is fine for the link

WHAT DO YOU RECOMMEND?

To be able to see the full title of linked objects instead of seeing some of the title and then a “…”/ellipsis.

HOW COULD IT BE DONE?

I don’t know how this would work on the backend, but I don’t suppose it would be too difficult.

REAL WORLD USE CASES

I do my monthly reviews in anytype, and I often link to objects as highlights of the month. I want to be able to see the full event instead of having to fill it in mentally or open up the object/hover over it to see the full title.

RECOMMENDED ALTERNATIVES

Hovering over the object (would be simpler to not have to do that, though; I like seeing my month at a birds eye glance); shortening the titles of my objects (very limiting/annoying).

ADDITIONAL CONTEXT

Can’t think of any.

Thanks, Anyteam! Happy New Year!!

I think this goes along the same way as the oft requested feature of allowing wrapping in cells in sets and collections…I think this request is a duplication.

Cheers

It is already possible.
We have different ways to link to another Object.
You’re using the “@” command, that does shorten the Name.

If you use instead the Slash command (type “/lin” for the command “Add Link”) you can choose an existing Object.
The link however, will show looooong Object names AND(!) appear in a separate line, even e separate Block.
By clicking on the yellow moving gripper (without moving it), you can change some settings of the preview style.

A third way, if you don’t want that additional Block:
Type whatever you want, mark a part of that text with the mouse or keyboard, then click in the now appearing context menu the chain symbol.
This way, the marked text becomes a link and will not change if you edit the linked Objects name.

very interesting…thank you for listing the 3 different ways to link objects. Was not aware of the subtleties!

Cheers

Thank you for the explanations! I was aware of all of those already, the feature request is specifically to list the full name when using the @ sign. They could allow the option to see the ellipsis if people want it, though, for those who do.

Btw. It can become a bit “dangerous” to have the full name in the continous text.
Why:
Let’s assume, you link in a very long parent Page to a child Object with a short name.
The parent is well formatted and fine tuned, so that it fits perfectly on the paper sheets if you print it.

Later, you decide to change the child’s name, make it longer.
You don’t thing about the parent in this moment.
Some day, you need to print your parent Object that has always fitted perfectly on 80 sheets of paper.
But now, because of that changed link name, that’s now longer, the fifth sheet needs a single line more … and causes a page break … and all following sheets are now printed for trash!