1

In Textmate 2, when you rename a file, the new filename shows up in the file-browser sidebar, but the old filename does, too, with a red X. The old filename won't go away until you commit your name change. This has been infuriating me for years. I refactor & rename a lot, and I constantly click on the wrong/deleted filenames during the refactor.

Is there a way to disable this behavior?

I have tried disabling all SCM-related bundles, but that doesn't do the trick.

armchairdj
  • 1,030
  • 11
  • 13
  • BTW, this is NOT a dupe of https://stackoverflow.com/questions/17590302/textmate-2-alpha-showing-references-for-deleted-files. I know I can get the deleted files to disappear by committing. I just don't want the deleted files to show up EVER. – armchairdj May 19 '18 at 18:26

1 Answers1

2

This is new last week:

It is possible to set excludeSCMDeleted = true in a .tm_properties file to hide the “ghost” items that appear after deleting a file on disk which is still tracked by your version control system.

miken32
  • 42,008
  • 16
  • 111
  • 154
  • 1
    Markdown mangled your link but thanks for the info! Here'e a working link: https://github.com/textmate/textmate/blob/master/Applications/TextMate/about/Changes.md#2018-11-01-v20-rc14 This is AWESOME. I can stop prematurely committing mid-stream refactoring jobs just to get rid of these ghost files. – armchairdj Nov 08 '18 at 16:27
  • For everyone scratching their heads seing `.tm_properties` – it's a file that you create in your project's dirs. – Maciek Rek Dec 01 '19 at 09:54
  • This did not work for me – Michael Ozeryansky Jul 03 '22 at 05:54