<?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[TextFX insert ... questions]]></title><description><![CDATA[<p dir="auto">Is this the right area to ask questions about TextFX or is it supported by someone else?</p>
<p dir="auto">I’m running npp v7.7 with the included TextFX v0.26</p>
<p dir="auto">My questions are about the TextFX Insert options</p>
<ol>
<li>Insert Current Full Path inserts the first character of the path.</li>
<li>Insert Current File Name inserts the first character of the file name.</li>
<li>Insert Current Directory inserts the first character of the directory path.</li>
</ol>
<p dir="auto">For 1, 2, and 3 above the insert options for the full path, file name, and directory into the clipboard work when you right click on a tab.</p>
<ol start="4">
<li>Is there a way to control the format for the short and long time?  I’m getting<br />
4:43 PM 5/30/2019 (short format)<br />
4:43 PM Thu 05/30/2019 (long format)<br />
but would like<br />
05/30/2019 16:43 (short format)<br />
2019-05-30 16:43 (long format)</li>
</ol>
]]></description><link>https://community.notepad-plus-plus.org/topic/17730/textfx-insert-questions</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 20:02:24 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17730.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 May 2019 23:51:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TextFX insert ... questions on Sat, 01 Jun 2019 20:23:47 GMT]]></title><description><![CDATA[<p dir="auto">But…maybe…this script is only useful as an example, because it is just as easy to use one of Notepad++'s tab-right-click options to copy the same info to the clipboard, and then paste it somewhere else…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44094</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44094</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 01 Jun 2019 20:23:47 GMT</pubDate></item><item><title><![CDATA[Reply to TextFX insert ... questions on Sat, 01 Jun 2019 00:31:44 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></p>
<p dir="auto">You didn’t create a thread for the filename/pathname functions, so I’ll address that one here. Here’s a little script that does it:</p>
<pre><code>import os

curr_pos = editor.getCurrentPos()
pathname = notepad.getCurrentFilename()
if os.path.exists(pathname):
    while (True):
        response = notepad.prompt("Choose what you'd like to insert about current file:", '',
            '1) Complete pathname\r\n'
            '2) Only the directory name\r\n'
            '3) Only the filename and any extension\r\n'
            )
        if response == None:
            break
        else:
            try:
                response = int(response)
            except ValueError:
                pass
            else:
                if response == 1:
                    editor.insertText(curr_pos, pathname)
                    editor.setEmptySelection(curr_pos + len(pathname))
                    break
                elif response == 2:
                    dirname = cfn.rsplit(os.sep, 1)[0] + os.sep
                    editor.insertText(curr_pos, dirname)
                    editor.setEmptySelection(curr_pos + len(dirname))
                    break
                elif response == 3:
                    filename = cfn.rsplit(os.sep, 1)[1]
                    editor.insertText(curr_pos, filename)
                    editor.setEmptySelection(curr_pos + len(filename))
                    break
</code></pre>
<p dir="auto">When run, a box like this pops up:</p>
<p dir="auto"><img src="https://i.imgur.com/IJMGi0q.png" alt="Imgur" class=" img-fluid img-markdown" /></p>
<p dir="auto">By typing 1, 2 or 3 you will overwrite the selected blue text with your choice. You then simply press OK (or, to abort, obviously, press Cancel). Then your desired data will be written into the current document.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44068</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44068</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 01 Jun 2019 00:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to TextFX insert ... questions on Fri, 31 May 2019 22:52:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said:</p>
<blockquote>
<p dir="auto">The features that you seem to be interested in are easily replicated with a scripting plugin (e.g. Pythonscript).  Do you have an interest in using that?  We can help get that up and running and then show you how to get the output you need from it.</p>
</blockquote>
<p dir="auto">Thank you Alan.  That would be useful. I created a new thread at <a href="https://notepad-plus-plus.org/community/topic/17738/textfx-customizing-the-date-time-format" rel="nofollow ugc">https://notepad-plus-plus.org/community/topic/17738/textfx-customizing-the-date-time-format</a> so that others interested in the same topic can more easily find it.  My original intent had been to ask about customizing the date/time format that’s generated by TextFX.  While getting ready to ask that I experimented with TextFX’s other insert … options, realized they had bugs, which topic-drifted into that TextFX itself is no longer supported…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44065</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44065</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 31 May 2019 22:52:34 GMT</pubDate></item><item><title><![CDATA[Reply to TextFX insert ... questions on Fri, 31 May 2019 22:05:13 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:</p>
<blockquote>
<p dir="auto">TextFX has not been updated since 2009-08-02</p>
</blockquote>
<p dir="auto">Yea, it is just one of those things…</p>
<p dir="auto">The features that you seem to be interested in are easily replicated with a scripting plugin (e.g. Pythonscript).  Do you have an interest in using that?  We can help get that up and running and then show you how to get the output you need from it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44063</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44063</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 31 May 2019 22:05:13 GMT</pubDate></item><item><title><![CDATA[Reply to TextFX insert ... questions on Fri, 31 May 2019 21:48:30 GMT]]></title><description><![CDATA[<p dir="auto">I dug into this a bit more.</p>
<p dir="auto">Unfortunately, it appears that TextFX has not been updated since 2009-08-02. It reports that its home page is <a href="http://textfx.no-ip.com/textfx/" rel="nofollow ugc">http://textfx.no-ip.com/textfx/</a> which is a non-responding server.</p>
<p dir="auto">Source code is available for v2.5 but not v2.6.  People have been seeking v2.6’s source code without success.  I did not look to see if I could figure out who built v2.6.</p>
<p dir="auto">I suspect issues 1, 2, 3 reported above are all related to that the code tried to interpret a Unicode path as an ANSI string.  The first character of C:.… is “C” which is Unicode 0043 which on Windows machines gets stored as the bytes 43 00. Code looking at that as a null terminated ANSI string will see just “43” which is the “C”.</p>
<p dir="auto">The date/time format is hard coded in v2.5 though I see that:</p>
<ol>
<li>There is commented out code that generates a format close to what I’m seeking.</li>
<li>That the v2.5 code used the user default date format from Windows. While that’s configurable I have discovered that making changes to it changes the date/time format for nearly everything in Windows including the format of the %DATE% and %TIME% environment variables which breaks batch files…</li>
</ol>
<p dir="auto">There has been at least one stalled attempt to replace TextFX.  Apparently the v2.5 code can’t be compiled for x64.  I did not look hard at it to see why that’s the case as most of it seems to be plain vanilla C style code though in .cpp files.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44062</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44062</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Fri, 31 May 2019 21:48:30 GMT</pubDate></item><item><title><![CDATA[Reply to TextFX insert ... questions on Fri, 31 May 2019 12:49:38 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:</p>
<blockquote>
<p dir="auto">Is this the right area to ask questions about TextFX or is it supported by someone else?</p>
</blockquote>
<p dir="auto">Sure, TextFX questions are OK here!</p>
<blockquote>
<p dir="auto">I’m running npp v7.7 with the included TextFX v0.26</p>
</blockquote>
<p dir="auto">For the record, TextFX is NOT included with Notepad++ 7.7.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/44037</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/44037</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 31 May 2019 12:49:38 GMT</pubDate></item></channel></rss>