<?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[Showing File-Path in Tab or above editor window]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">since I am using NP++ with many files sharing the same name, I am searching a way to show the file path in the tab or like directly below the tab inside the editor window.<br />
The files differ only form the path I am opening them from.<br />
They are located inside different project folders and in temporary paths from FTP-Clients.</p>
<p dir="auto">I found a way to show it in the document list, but since I am not using this, it is no solution.</p>
<p dir="auto">Is there a way to show the path in the tab or like a header ontop of the editor window?<br />
Maybe using a modifed theme?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Br<br />
Stimmenhotel</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24685/showing-file-path-in-tab-or-above-editor-window</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 22:06:55 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24685.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Jul 2023 09:37:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Sun, 14 Jan 2024 20:59:19 GMT]]></title><description><![CDATA[<p dir="auto">If you’ve used a script in this thread, you might want to double check your copy of it for a bug I’ve discovered.<br />
Look to previous postings in this topic thread where the script has been changed – find the text <code>moderator edit (2024-Jan-14)</code>.<br />
There’s a link there that describes the bug in more detail, and shows what needs to be changed in an old copy (or you can simply grab a copy of the current version).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92062</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92062</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 14 Jan 2024 20:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Sat, 15 Jul 2023 19:41:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> said in <a href="/post/87775">Showing File-Path in Tab or above editor window</a>:</p>
<blockquote>
<p dir="auto">Sadly, this is yet another person who would have benefited from my recent PR that enabled showing the directory or the path in the tab bar.</p>
</blockquote>
<p dir="auto">After a little more discussion, the PR that I mentioned above is firmly rejected, so there is definitely no point in trying to comment there.</p>
<p dir="auto">Maybe there is some other way that might get accepted to change Notepad++ directly to make duplicate files easier to work with, but it seems doubtful to me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87951</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87951</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sat, 15 Jul 2023 19:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Thu, 13 Jul 2023 11:41:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: Stimmenhotel">@<bdi>Stimmenhotel</bdi></a> said in <a href="/post/87876">Showing File-Path in Tab or above editor window</a>:</p>
<blockquote>
<p dir="auto">Quite clunky</p>
</blockquote>
<p dir="auto">I think you mean the <em>NavigateTo</em> approach?</p>
<p dir="auto">I find invoking that plugin clunky (in the sense of keyboard usage) and have made a suggestion that it should be made better; see <a href="https://github.com/young-developer/nppNavigateTo/issues/53" rel="nofollow ugc">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87882</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87882</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 13 Jul 2023 11:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Thu, 13 Jul 2023 07:11:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> Quite clunky, but perfect for now. Thanks for the recommendation.<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thanks for the script, I will try it anyway. Especially as it shows me the way of using scripts, I will definitely try it anyway.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87876</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87876</guid><dc:creator><![CDATA[Stimmenhotel]]></dc:creator><pubDate>Thu, 13 Jul 2023 07:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Tue, 11 Jul 2023 20:27:10 GMT]]></title><description><![CDATA[<p dir="auto">Here’s <em>NavigateTo</em> showing my fileset…not bad:</p>
<p dir="auto"><img src="/assets/uploads/files/1689107220241-b0daa1ec-817f-4a3e-ade2-f47588b26c0b-image.png" alt="b0daa1ec-817f-4a3e-ade2-f47588b26c0b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/87817</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87817</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 11 Jul 2023 20:27:10 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Tue, 11 Jul 2023 17:27:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: Stimmenhotel">@<bdi>Stimmenhotel</bdi></a> said in <a href="/post/87800">Showing File-Path in Tab or above editor window</a>:<br />
I’m glad that you think my PR would have been useful!</p>
<blockquote>
<p dir="auto">Maybe this can be added as a plugin?</p>
</blockquote>
<p dir="auto">In any case, the <a href="https://github.com/young-developer/nppNavigateTo" rel="nofollow ugc">NavigateTo plugin</a> is good for working with <em>large numbers of files in general</em>, and it’s also pretty good for dealing with files that have duplicate filenames.</p>
<p dir="auto"><img src="/assets/uploads/files/1689096299283-6aeadafa-eaa9-4a1d-b66d-b6c74c0043dd-image.png" alt="6aeadafa-eaa9-4a1d-b66d-b6c74c0043dd-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">As shown in the above example, NavigateTo is really useful for sifting through files that may have the same name or similar names. If you do decide to use NavigateTo, I highly recommend <a href="https://github.com/young-developer/nppNavigateTo/releases/tag/v.2.6.0" rel="nofollow ugc">downloading a recent release</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87813</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87813</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Tue, 11 Jul 2023 17:27:01 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Sun, 14 Jan 2024 18:31:43 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps a script helps here…</p>
<p dir="auto">Maybe when you need to go to a specific file that you see over and over in your tabs (“<em>So which tab do I want??</em>”), you run a script and it shows you all of the paths to these same-named tabs, and from there you could double-click the one you need to navigate to, and it would take you there; example:</p>
<p dir="auto"><img src="/assets/uploads/files/1689081077783-6987046c-419c-42e4-9933-ae90181f38bf-image.png" alt="6987046c-419c-42e4-9933-ae90181f38bf-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I call the script <code>ListDuplicatelyNamedTabsShowingFullPaths.py</code> :</p>
<pre><code class="language-py"># -*- coding: utf-8 -*-
from __future__ import print_function

#########################################
#
#  ListDuplicatelyNamedTabsShowingFullPaths (LDNTSFP)
#
#########################################

# references:
#  https://community.notepad-plus-plus.org/topic/24685

#-------------------------------------------------------------------------------

from Npp import *
import inspect
import os

#-------------------------------------------------------------------------------

class LDNTSFP(object):

    def __init__(self):

        self.this_script_name = inspect.getframeinfo(inspect.currentframe()).filename.split(os.sep)[-1].rsplit('.', 1)[0]

        self.this_script_path_without_ext = inspect.getframeinfo(inspect.currentframe()).filename.rsplit('.', 1)[0]
        self.results_file = self.this_script_path_without_ext + '.txt'

        self.original_file = None

        editor.callback(self.doubleclick_callback, [SCINTILLANOTIFICATION.DOUBLECLICK])

    def run(self):

        pathlist_by_tabtext_dict = {}

        view_0_tabtext_list = []  # for detecting cloned-files

        for (pathname, buffer_id, index, view) in notepad.getFiles():
            if not os.path.isfile(pathname): continue  # skip any soft-named tabs
            tab_text = pathname.rsplit(os.sep, 1)[-1]
            if view == 0:
                view_0_tabtext_list.append(tab_text)
            elif tab_text in view_0_tabtext_list:
                continue  # don't consider a cloned file as a duplicate tab for purposes of this script
            if tab_text not in pathlist_by_tabtext_dict:
                pathlist_by_tabtext_dict[tab_text] = [ pathname ]
            else:
                pathlist_by_tabtext_dict[tab_text].append(pathname)

        results_file_line_list = [
            'DOUBLE-CLICK A PATHNAME LINE TO CLOSE THIS FILE AND OPEN THAT PATHNAME',
            'DOUBLE-CLICK SOMEWHERE IN WHITESPACE TO CLOSE THIS FILE AND RETURN TO ORIGINAL FILE',
            '',
        ]

        have_at_least_one_duplicate_tab_name = False

        for tab_text in pathlist_by_tabtext_dict:
            if len(pathlist_by_tabtext_dict[tab_text]) &gt; 1:
                have_at_least_one_duplicate_tab_name = True
                results_file_line_list.append(tab_text + ' :')
                for path in pathlist_by_tabtext_dict[tab_text]:
                    results_file_line_list.append('\t' + path)

        if have_at_least_one_duplicate_tab_name:

            self.original_file = notepad.getCurrentFilename()

            notepad.activateFile(self.results_file)  # in case it is already open
            if notepad.getCurrentFilename() != self.results_file:
                open(self.results_file, 'w').close()  # so notepad.open() won't prompt or fail on non-existent file
                notepad.open(self.results_file)
                assert notepad.getCurrentFilename() == self.results_file

            eol = ['\r\n', '\r', '\n'][editor.getEOLMode()]
            editor.setText(eol.join(results_file_line_list))
            notepad.save()
            editor.setReadOnly(True)

        else:

            self.mb('Currently there are no duplicately named tabs.')

    def doubleclick_callback(self, args):

        if notepad.getCurrentFilename() == self.results_file:

            double_click_pos = args['position']

            if double_click_pos == -1:

                # not close to any text; simply return to original document
                notepad.close()  # close the file double-clicked in
                if self.original_file is not None:
                    notepad.activateFile(self.original_file)
                    self.original_file = None

            else:

                double_click_line = editor.lineFromPosition(double_click_pos)
                dclick_line_content = editor.getLine(double_click_line)
                pathname_to_open = dclick_line_content.strip()
                if os.path.isfile(pathname_to_open):
                    notepad.close()  # close the file double-clicked in
                    notepad.activateFile(pathname_to_open)
                    self.original_file = None

    def mb(self, msg, flags=0, title=''):  # a message-box function
        return notepad.messageBox(msg, title if title else self.this_script_name, flags)

#-------------------------------------------------------------------------------

if __name__ == '__main__':
    try:
        ldntsfp
    except NameError:
        ldntsfp = LDNTSFP()
    ldntsfp.run()
</code></pre>
<p dir="auto">The script opens a new file and then waits for you to do something (i.e., double-click) in that file.  When that happens, this special file closes and you are back on your way with what you need to work on next.</p>
<p dir="auto">--<br />
<em>Moderator EDIT (2024-Jan-14): The author of the script has found a fairly serious bug with the code published here for those that use Mac-style or Linux-style line-endings in their files.  The logic for Mac and Linux was reversed, and thus if the script was used on one type of file, the line-endings for the opposite type of file could end up in the file after the script is run.  This is insidious, because unless one works with visible line-endings turned on, this is likely not noticed.  Some detail on the problem is <a href="https://community.notepad-plus-plus.org/post/91918">HERE</a>.  The script above has been corrected per that instruction.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/87807</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87807</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 14 Jan 2024 18:31:43 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Tue, 11 Jul 2023 13:06:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> said in <a href="/post/87775">Showing File-Path in Tab or above editor window</a>:</p>
<blockquote>
<p dir="auto">Sadly, this is yet another person who would have benefited from my recent PR that enabled showing the directory or the path in the tab bar.</p>
</blockquote>
<blockquote>
<p dir="auto">I’m not even going to suggest that the OP raise an issue, because it will just get rejected as a duplicate.</p>
</blockquote>
<p dir="auto">Yes, but OP could add a <em>comment</em> in the rejected issue; this would help show the author that the functionality is important to yet another person.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87806</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87806</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 11 Jul 2023 13:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Tue, 11 Jul 2023 06:17:25 GMT]]></title><description><![CDATA[<p dir="auto">To add further information:</p>
<p dir="auto">I am working with a few configuration files, one of them is on a test system inside a TEMP folder managed by WinSCP.<br />
The files have the same name, as I often compare them and check for errors and/or similarities.</p>
<p dir="auto">I think renaming tabs would not be possible, as the temp folder sometimes changes. Same for colorcoding.<br />
Also I am not exclusively use NP++ for this case, so closing and opening tabs, workfolders, searching, etc. happens a lot.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> That would have nailed the problem, yes. Sadly it was rejected.<br />
Does it still make sense to add a comment to the PR?<br />
Maybe this can be added as a plugin?</p>
<p dir="auto">I think I will stay with temporary coloring for now or change the read-only status.</p>
<p dir="auto">Thanks for your suggestions.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87800</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87800</guid><dc:creator><![CDATA[Stimmenhotel]]></dc:creator><pubDate>Tue, 11 Jul 2023 06:17:25 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 17:16:34 GMT]]></title><description><![CDATA[<p dir="auto">Sadly, this is yet another person who would have benefited from <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/pull/13854#issuecomment-1619171120" rel="nofollow ugc">my recent PR</a> that enabled showing the directory or the path in the tab bar.</p>
<p dir="auto">I’m not even going to suggest that the OP raise an issue, because it will just get rejected as a duplicate. ☹️</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87775</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87775</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Mon, 10 Jul 2023 17:16:34 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 14:53:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mkupper" aria-label="Profile: mkupper">@<bdi>mkupper</bdi></a> said in <a href="/post/87756">Showing File-Path in Tab or above editor window</a>:</p>
<blockquote>
<p dir="auto">which is similar to what you are asking about</p>
</blockquote>
<p dir="auto">I don’t think the OP here wants to rename tabs…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87758</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87758</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 10 Jul 2023 14:53:11 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 14:36:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: Stimmenhotel">@<bdi>Stimmenhotel</bdi></a> Please see <a href="https://community.notepad-plus-plus.org/topic/24627/rename-the-tab-not-the-file">https://community.notepad-plus-plus.org/topic/24627/rename-the-tab-not-the-file</a> which is similar to what you are asking about.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87756</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87756</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Mon, 10 Jul 2023 14:36:07 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 12:49:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: Stimmenhotel">@<bdi>Stimmenhotel</bdi></a></p>
<p dir="auto">What’s your end goal?<br />
I presume it is to switch to the tab at a definite path (that you have in mind but can’t immediately see), but I wanted to make sure this would be your next step…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87751</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87751</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 10 Jul 2023 12:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 10:57:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: Stimmenhotel">@<bdi>Stimmenhotel</bdi></a></p>
<p dir="auto">The titlebar approach works if the tab you are interested in is the active one.  Hovering the mouse over an inactive tab will cause a little popup to appear with the full path of the tab in it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87748</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87748</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 10 Jul 2023 10:57:23 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 10:09:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a> Thanks for the quick tip!<br />
I have the path in the title bar, but is usally not the place my eyes are used to look. I will try to look more often on the titlebar, but I hoped there is maybe another way too.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87746</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87746</guid><dc:creator><![CDATA[Stimmenhotel]]></dc:creator><pubDate>Mon, 10 Jul 2023 10:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to Showing File-Path in Tab or above editor window on Mon, 10 Jul 2023 10:01:05 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/stimmenhotel" aria-label="Profile: stimmenhotel">@<bdi>stimmenhotel</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">I suppose that the option, below, in <strong><code>Settings &gt; Preferences... &gt; MISC</code></strong> must be <strong>checked</strong>. In this case, just <strong>uncheck</strong> it !</p>
<p dir="auto"><img src="/assets/uploads/files/1688983236871-324d4750-2afc-485d-b500-7320426097e1-stimmenhotel.png" alt="324d4750-2afc-485d-b500-7320426097e1-Stimmenhotel.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/87745</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/87745</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Mon, 10 Jul 2023 10:01:05 GMT</pubDate></item></channel></rss>