<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Symlinks to file don't give refresh dialogue when outside program modifies them]]></title><description><![CDATA[<p dir="auto">In the old versions of Notepad++, I could create a file in Windows and a symlink to that file, and if I changed one or the other, it would ask if I wanted to refresh both. This was a bit awkward, but it was helpful.</p>
<p dir="auto">I wrote a script that looked through notepad++ daily for files that might be duplicated, e.g. I had A opened and B, and A was a symlink to B.</p>
<p dir="auto">I recently updated (from 6.8 to 7.8 … a big jump) and while a lot of new features are great, I have a small problem. I don’t see any immediate way to stop using symlinks, and if I</p>
<p dir="auto">mklink a.txt b.txt</p>
<p dir="auto">And I change a.txt, then b.txt will register as changed.</p>
<p dir="auto">But if I change b.txt, a.txt will register as changed.</p>
<p dir="auto">Also, if I write an outside script to change a.txt or b.txt, Notepad++ registers b.txt is changed, but not a.txt. This is a problem, as I automate a lot of changes in some text files.</p>
<p dir="auto">Now I can be careful with which file I open. I can even close and open files regularly. I should probably close a lot of my excess tabs.</p>
<p dir="auto">But I am wondering if I am missing an option to set, so that when we look if a.txt is changed, we look for if its symbolic links have changed.</p>
<p dir="auto">I have tried settings:preferences:misc:auto-detect, but none of the option changes I tried worked.</p>
<p dir="auto">It looks like I need to keep my symlinks, because a program I use needs them in a \program files directory, but I want to use \users\andrew\documents\github\my_project for source control.</p>
<p dir="auto">Is there something I’m overlooking in Notepad++ or symlinks in general, or do I need to revisit how I handle my symlinked files? Thanks for any and all help!</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/20841/symlinks-to-file-don-t-give-refresh-dialogue-when-outside-program-modifies-them</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 20:19:10 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/20841.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Mar 2021 20:58:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Symlinks to file don't give refresh dialogue when outside program modifies them on Tue, 09 Mar 2021 18:45:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrew-schultz" aria-label="Profile: Andrew-Schultz">@<bdi>Andrew-Schultz</bdi></a> well, double posting is generally a bit tacky, but here, I figured what I was doing wrong.</p>
<p dir="auto">I had switched to Windows 10 and this may have altered the behavior of start.exe, which I used to spawn notepad for stuff like python files.</p>
<p dir="auto">Notepad++ actually does, by default, open symlinks. If I open a .txt file that symlinks to another, it shows the linked-to file.</p>
<p dir="auto">With link-from.txt linking to link-to.txt, this opens up the file linked from:</p>
<pre><code>start "" "c:\program files\notepad++\notepad.exe" "link-from.txt"
</code></pre>
<p dir="auto">This opens up the file linked to:</p>
<pre><code>start "c:\program files\notepad++\notepad.exe" "link-from.txt"
</code></pre>
<p dir="auto">I suppose I can complain about windows batch files a bit if I want, but … this looks like something notepad++ can’t be expected to handle, but I can, pretty easily.</p>
<p dir="auto">Hopefully what I found can save someone else a bit of time.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63737</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63737</guid><dc:creator><![CDATA[Andrew Schultz]]></dc:creator><pubDate>Tue, 09 Mar 2021 18:45:43 GMT</pubDate></item><item><title><![CDATA[Reply to Symlinks to file don't give refresh dialogue when outside program modifies them on Mon, 08 Mar 2021 14:06:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> thanks. How Notepad handles things makes sense, probably more than the old way, but the old way was more convenient for me.</p>
<p dir="auto">My scripts point to the symlinks outside my git directories, because it is simpler that way, so I will see about updating them. Git doesn’t let you check in symlinks.</p>
<p dir="auto">Hard links are also a possibility. So there are solutions. But I’m disappointed there isn’t an option to follow symlinks when looking for if a file changed.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63693</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63693</guid><dc:creator><![CDATA[Andrew Schultz]]></dc:creator><pubDate>Mon, 08 Mar 2021 14:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Symlinks to file don't give refresh dialogue when outside program modifies them on Mon, 08 Mar 2021 00:40:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrew-schultz" aria-label="Profile: Andrew-Schultz">@<bdi>Andrew-Schultz</bdi></a> ,</p>
<p dir="auto">Sorry, not an expert on symlinks, but since no one else has replied…</p>
<p dir="auto">As far as I know, there aren’t any options available to Notepad++ configurations to affect how symlinks are handled.    As far as I know, for recognizing external changes, Notepad++ relies on the timestamp on the file it’s editing, and I would think that unless a.txt’s timestamp is updated, Notepad++ wouldn’t be able to recognize it was changed.  And the change of the timestamp would be something required to be initiated by the external process.  And no, I don’t know how that’s accomplished.  Sorry.</p>
<blockquote>
<p dir="auto">or do I need to revisit how I handle my symlinked files?</p>
</blockquote>
<p dir="auto">My guess is yes, that would be your best choice.  Personally, I would only open one of the two files in a symlinked pair; if they always both have the same contents, why bother leaving both open?</p>
<p dir="auto">Anyway, sorry I wasn’t more help, but given the lack of response, I don’t know that you’ll get a better answer.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/63687</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/63687</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 08 Mar 2021 00:40:52 GMT</pubDate></item></channel></rss>