In an edit diff, when the revision changes the title, removed words are shown struck out in red and added words are shown with a green background. This is fine when there are only removed words, or only added words, but when there are both, the result is difficult to read.

title with edited words

Getting default accessible fields of… No. Getting accessible fields of an object in a Salesforce object… No. Getting accessible fields of a Salesforce object using REST API. Phew. Yeah, ok.

title with edited words

Program causes run. Time error? Oh, Program causes run-time error … when run on specific machine. Yeah, sounds sensible. What was the old title? Oh dear…

Please show both the old title and the new title, one below the other.

  • 3
    How weird... I was considering requesting exactly the same thing earlier today! (+1 from me!) – Matt Jun 12 '12 at 18:24
  • @Matt I thought this already existed on meta, but I didn't find it, so now it's here. – Gilles Jun 12 '12 at 18:25
  • 1
    +1 this is really annoying. – ben is uǝq backwards Jun 12 '12 at 18:25
  • 1
    Same solution to a different problem: Please keep title edits display consistent with content edits - He's complaining about the title edit not being very visible, but the solution would solve this issue as well. – animuson Jun 12 '12 at 18:25
  • @animuson Ah, yes, thank you. That would work too. I'm not bent on the placement, all I want is to see both titles unencumbered. – Gilles Jun 12 '12 at 18:30
  • 1
  • The regular revision history side-by-side view gives you this ability, it's weird that the edit review interface doesn't, although to be fair, I never really noticed until now. Still, odd that this doesn't exist. Seems like a totally reasonable thing to want to do. – Jason C May 13 '17 at 13:51
  • @JasonC seems my recent FR is a dupe of this. – αλεχολυτ May 13 '17 at 19:54

Considering that titles get re-written a lot AND that carefully worded titles make a big difference, the seeing the whole title at once is actually quite important.

I too would like to see the diff for edits styled in such a way that the old and new question titles show up separately in the same way that the question bodies do. The current rendering of titles being an inline diff and the post body being separate is inconsistent.

The added and deleted words can still be highlighted in the appropriate one (red for deleted words in the old title and green for added ones in the new), but each title should be readable from start to finish as a single unit.


I've made a userscript to do this. It gets the new and old content and puts them in place of the old annoying view:

From this: enter image description here To this: enter image description here

(not the best example - but it's not my fault nobody's suggesting any title edits! I'll add a more complex example as soon as I see one)

You can get this on the development version with my SE Additional Optional Features userscript at StackApps.

The script:

// ==UserScript==
// @name         View title in diff-view
// @namespace    http://stackexchange.com/users/4337810/
// @version      1.0
// @description  Replaces the title in diff-view to a easier to understand view
// @author       ᔕᖺᘎᕊ (http://stackexchange.com/users/4337810/)
// @match        *://*.stackexchange.com/*
// @match        *://*.stackoverflow.com/*
// @match        *://*.superuser.com/*
// @match        *://*.serverfault.com/*
// @match        *://*.askubuntu.com/*
// @match        *://*.stackapps.com/*
// @match        *://*.mathoverflow.net/*
// @grant        none
// ==/UserScript==

setTimeout(function() {
    var $questionHyperlink = $('.summary h2 .question-hyperlink').clone(),
        $questionHyperlinkTwo = $('.summary h2 .question-hyperlink').clone(),
        link = $('.summary h2 .question-hyperlink').attr('href'),
        added = ($questionHyperlinkTwo.find('.diff-delete').remove().end().text()),
        removed = ($questionHyperlink.find('.diff-add').remove().end().text());

    $('.summary h2 .question-hyperlink').hide();
    $('.summary h2 .question-hyperlink').after("<a href='"+link+"' class='question-hyperlink'><span class='diff-delete'>"+removed+"</span><span class='diff-add'>"+added+"</span></a>");
}, 1000);

You must log in to answer this question.

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