What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 127 Stack Exchange communities.

In questions, links get converted into question titles (see Replace trilogy raw links with the current question title?)

Can the same functionality be added to comments?

share|improve this question
1  
For example: meta.stackexchange.com/questions/49433/… could be replaced with the title the same as in the question text. –  Alex B Feb 1 '11 at 18:23
    
I (personally) don't think that's is necessary and think this is enough fot comments, titles would be to spacey for comments, I don't know, I'm not donwn-voting though! –  Trufa Feb 1 '11 at 19:09
1  
(Just for the "Linked" section: this was also part of Can we improve the automatic titling of links to internal URLs?) –  Arjan Apr 11 '11 at 11:22
3  
This is a duplicate of an old feature request –  rds Aug 19 '11 at 12:46
1  
Link to user script to do this, generated via said user script - SE Comment Link Helper –  Dukeling Sep 24 '13 at 19:35
add comment

3 Answers

This would be especially useful on mobile devices, where:

  • Cutting and pasting the title of a question and then its URL is a huge pain, because it involves switching back and forth between the comment page and the page with the question to be linked, without the aid of windows or tabs.

  • Have you ever tried editing Markdown on a mobile device? Moving the cursor and selecting bracket characters is not fun. And better get it right the first time, because clicking the edit button afterwards is even harder.

  • Userscripts aren't available on mobile.

As for Jeff's objections why it can't be done:

  • "Comments are processed on the fly." Just look up the title once and add the Markdown that we would otherwise have to type manually.

  • "If you want this, put your links in a post, where it is already supported." That's not a very good reason. You're basically arguing that we shouldn't even have comments.

share|improve this answer
8  
I wholeheartedly agree. I will often comment on my phone as well. There's no reason the transformation couldn't happen when the comment is first accepted. –  David Harkness Mar 4 '12 at 22:52
    
commenting for me on my Android only works with the Hacker's Keyboard, which has up-and down arrows etc. –  rubo77 May 4 at 14:03
add comment

As a fast workaround, you can easily convert the question to a link by those steps:

Example URL:

http://meta.stackexchange.com/questions/148999/cross-site-question-parsing-for-question-urls-in-comments
  1. Paste it into the commentbox
  2. Shift+Ctrl+<-- repeat until you marked the question part of the url cross-site-question-parsing-for-question-urls-in-comments that is not needed in the post.
  3. Ctrl+x
  4. type )
  5. Ctrl+<-- repeat to the beginning of the URL
  6. type [Ctrl+v](

this will look like this:
cross-site-question-parsing-for-question-urls-in-comments

whis is quite satisfying in a comment, and close to
Cross-site question parsing for question URLs in comments

(see also http://meta.stackexchange.com/a/230991/188615)

share|improve this answer
2  
Not all that satisfying IMO, and it costs valuable characters! –  Nick Stauner May 5 at 17:56
add comment
up vote -19 down vote
+500

No, because comments are processed on the fly. This means a page with 12 links would incur 12 additional database queries -- every time the page is loaded.

Comments are meant to be lightweight. If you want this, put your links in a post, where it is already supported.

share|improve this answer
1  
Although I am also not really agree with the request, but api does allow vectorized requests, that would not really cost 12 database queries for 12 links, isn't it? –  YOU Apr 11 '11 at 7:55
11  
This could be cached, so the database hits should not be an issue. Stop blaming the database when you mean "I don't think the value of X is worth the programming time" –  Ian Ringrose Apr 11 '11 at 11:43
1  
@ian database queries are never free, no matter how clever we are. The fundamental issue is that comments are always processed on the fly, unlike posts which store both raw and cooked representations. –  Jeff Atwood Apr 11 '11 at 18:33
21  
But why can't this be done in a static way? i.e. look up the title once when the comment gets created. Having to do this manually all the time is terribly cumbersome and time-consuming. –  Pëkka Apr 30 '11 at 13:27
    
@Pekka You'd have to modify the raw comment content in that case, which would mean that trying to edit the comment afterward would show you something different than what you typed. That doesn't seem like the best solution. –  Tim Stone Apr 30 '11 at 13:52
8  
@Tim but that could be solved by an alternative syntax, say a leading ! in front of the link as a sign that you want it converted. This would be really helpful –  Pëkka Apr 30 '11 at 13:54
    
@Pekka True, but you run the risk of going over the comment length limit by modifying the content in an automated way, which could cause issues. I'm sure it's doable anyway, but I can see why it might not be worth it. That said, gimme a few minutes for that userscript... –  Tim Stone Apr 30 '11 at 13:57
1  
Just made a similar request at meta.tex.stackexchange.com/questions/1673/…, and was told about this post. Although I understand the reasoning, they are still truncated and the left portion is displayed, so why not just display the trailing portion of the link, at least then there would be some meaningful info before mouse over. –  Peter Grill Aug 9 '11 at 0:58
5  
@TimStone In the extraordinarily rare event that it would cause the comment length to overflow, just don't do the conversion. –  Patrick McElhaney Dec 22 '11 at 13:50
2  
@TimStone Userscripts don't work on my iPhone. Try adding a comment with a link to a question and its title, adding the markdown formatting by hand on a mobile device. It's not fun. –  Patrick McElhaney Dec 22 '11 at 13:54
2  
I've posted another answer addressing these objections. –  Patrick McElhaney Dec 22 '11 at 14:06
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .