How to insert time and date, and the directory path in Notepad++

date timenotepadpath

I just downloaded Notepad++ v 5.3.1 and I'm having two problems with the TextFX plugin:

  1. I recorded a macro with "TextFX Insert" > Date & Time (no matter whether short or long format) and, after I run the macro, only the first number of the time appears

    For example, I ask to insert time and it says its 8:59 AM 11/27/2009; but when I run the macro it only pastes 8:. How do I do to have the date inserted in the file without always needing to go to TextFX > Insert > Date & Time?

  2. When I try to use "TextFX Insert" to add the directory name or full path, only the first letter appears. For example, C:\data would show up as only C for full paths or only d for the file name.

How do I resolve these bugs?

Best Answer

I just assigned this to a shortcut key by going to Settings → Shortcut Mapper → Plugin Commands → I:Date and Time → short format

I am running version 5.3.1.

Related Question