<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hey, Allan, what about this?<br></div><div><br></div><div><a href="https://eclecticlight.co/2020/03/27/what-changes-a-files-modification-date-and-what-doesnt/">https://eclecticlight.co/2020/03/27/what-changes-a-files-modification-date-and-what-doesnt/</a><br></div><div><br></div><div>I'm not saying you're wrong (I have no idea), but Howard says:<br></div><div><br></div><div>"<span style="color:rgb(61, 62, 64);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:rgb(255, 255, 255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline !important;"><span class="font" style="font-family:"Droid Serif", serif;"><span class="size" style="font-size:18px;">Changing a file’s xattrs doesn’t alter the data in the file itself. Xattrs aren’t even stored in the main data area of a volume, but apart, in the file system metadata. So adding or changing a xattr won’t change the date of modification, nor the date that the file was last opened. In fact, unless you look at the xattrs using a utility such as my xattr editor xattred, you won’t even notice what’s happened."</span></span></span><br></div><div><br></div><div>I'm wondering how to test something like that. :)<br></div><div><br></div><div id="sig39065985"><div>--<br></div><div>Marc Wilson<br></div><div><a href="mailto:posguy99@gmail.com">posguy99@gmail.com</a><br></div></div><div><br></div><div><br></div><div>On Sat, Mar 28, 2020, at 4:01 AM, Allan Odgaard wrote:<br></div><blockquote type="cite" id="qt"><div style="font-family:sans-serif;"><div style="white-space:normal;"><p dir="auto">On 26 Mar 2020, at 7:50, 周彬 wrote:<br></p></div><div style="white-space:normal;"><blockquote style="border-left-width:2px;border-left-style:solid;border-left-color:rgb(119, 119, 119);color:rgb(119, 119, 119);margin-top:0px;margin-right:0px;margin-bottom:5px;margin-left:0px;padding-left:5px;"><p dir="auto">I use electron-vue to automatically reload the page if file modified, and every time I close the tab, textmate automatically update mtime of the file.&nbsp;Are there any configuration option that do not modify the mtime of the file when the tab is closed?<br></p></blockquote></div><div style="white-space:normal;"><p dir="auto">The reason is that TextMate uses extended attributes to store things such as position of insertion point, selection etc.<br></p><p dir="auto">You can disable this via <code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0.4em;padding-bottom:0px;padding-left:0.4em;" bgcolor="#F7F7F7">.tm_properties</code>. Create a <code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0.4em;padding-bottom:0px;padding-left:0.4em;" bgcolor="#F7F7F7">.tm_properties</code> file in the root of your project and let it contain this line:<br></p><pre style="background-color:rgb(247, 247, 247);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-left:15px;margin-right:15px;overflow-x:auto;padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px;" bgcolor="#F7F7F7"><code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;" bgcolor="#F7F7F7">disableExtendedAttributes = true
</code><br></pre><p dir="auto">You can also create the file in <code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0.4em;padding-bottom:0px;padding-left:0.4em;" bgcolor="#F7F7F7">~</code> to disable the behavior globally, or you can limit it to certain file types, e.g. by using:<br></p><pre style="background-color:rgb(247, 247, 247);border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-left:15px;margin-right:15px;overflow-x:auto;padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px;" bgcolor="#F7F7F7"><code style="background-color:rgb(247, 247, 247);border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;" bgcolor="#F7F7F7">[ *.vue ]
disableExtendedAttributes = true
</code><br></pre></div></div><div><br></div><div>_______________________________________________<br></div><div>TextMate mailing list<br></div><div>TextMate@lists.macromates.com<br></div><div>https://lists.macromates.com/listinfo/textmate<br></div></blockquote><div><br></div></body></html>