Notepad3: Insert Update Timestamps Error

Created on 19 Jul 2020  路  6Comments  路  Source: rizonesoft/Notepad3

Open a text file, press Shift+F5 or select from menu Insert -> Update Timestamps, the error message "The specified text was not found" pops up TWICE and after I dismiss the message box, nothing happens.

I am using the latest stable version as of Apr. 14, 2020.

馃悶 bug

All 6 comments

Upcoming next Beta should fix the Timestamp handling:

  • Default Timestamp format is $Date: <date-time> $, e.g. $Date: 3:57 PM 7/21/2020 $
  • Your own Timestamp format can be defined in configuration file:
    [Settings2] DateTimeFormat=..., e.g. [Settings2] DateTimeFormat="#TimeStamp=%Y-%m-%d %H:%M:%S #"
    This will produce Timestamps like #TimeStamp=2020-07-21 16:02:23 #,
    (if defined, Insert Short & Long Format Timestamp uses this definition).
    The possible format string uses wcsftime() to fill the string with current timestamp)
  • If you define your own Timestamp format, you should define the corresponding TimeStampRegEx regular expression pattern accordingly (here: [Settings2] TimeStampRegEx="#TimeStamp=[^#]+#"), so that Update Timestamps operation can find and update them correctly.

Hello @longnetpro ,

Feel free to test the "Portable BETA/RC paf" version "Notepad3Portable_5.20.721.1_RC2.paf" or higher.
See the issue "Notepad3 BETA/RC-channel access #1129" or hereunder:

_Note1:_ The "Notepad3Portable_paf" version can be used in "2 flavors", see with or without extension ".7z".
_Note2:_ If you follow the instructions of #1105 , you can update your "Notepad3 Setup" version with the latest features/fixes of the "Portable BETA/RC paf" version (see #1129).

Also, feel free to test the "Setup BETA/RC" version "Notepad3_5.20.710.1_Setup_RC2" or higher.
See the issue "Notepad3 BETA/RC-channel access #1129" or hereunder:

Your comments and suggestions are welcome... 馃槂

Hello @longnetpro ,
As far as I'm concerned, I think you (requester) can close this issue...

Upcoming next Beta revised Timestamp and DateTime string handling:

  • Default DateTime formats are:

    1. SHORT: [Settings2] DateTimeFormat= (empty) - Notepad3's language locale short '

    2. LONG: [Settings2] DateTimeLongFormat= (empty) - Notepad3's language locale long '

    3. TIME_STAMP: [Settings2] TimeStampFormat= (empty) - "$Date: %s $" where '%s' is replaced by time/date in

      DateTimeFormat. E.g. [Settings2] TimeStampFormat=#TimeStamp=2020-07-21 16:02:23 #

  • All DateTime formats accept the strftime() format string.
    Addon: TimeStampFormat accepts '%s' (which is no valid strftime() formatting code) - a placeholder for a DateTimeFormat formatted current date/time string. (mixing of strftime() and '%s' is not allowed).
  • If you define your own TimeStampFormat, you should define the corresponding TimeStampRegEx regular expression pattern accordingly (for our example: [Settings2] TimeStampRegEx="#TimeStamp=[^#]+#"), so thatUpdate Timestamps operation can find and update them correctly.
  • Additional Menu Point: Insert Current Timestamp.

Upcoming next Beta revised Timestamp and DateTime string handling:

Hello @longnetpro ,

Feel free to test the "Portable BETA/RC paf" version "Notepad3Portable_5.20.805.1_beta.paf" or higher.
See the issue "Notepad3 BETA/RC-channel access #1129" or hereunder:

_Note1:_ The "Notepad3Portable_paf" version can be used in "2 flavors", see with or without extension ".7z".
_Note2:_ If you follow the instructions of #1105 , you can update your "Notepad3 Setup" version with the latest features/fixes of the "Portable BETA/RC paf" version (see #1129).

Also, feel free to test the "Setup BETA/RC" version "Notepad3_5.20.805.1_Setup_beta" or higher.
See the issue "Notepad3 BETA/RC-channel access #1129" or hereunder:

Your comments and suggestions are welcome... 馃槂

Thanks. Tested and works fine. Close the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigo- picture craigo-  路  4Comments

blackcrack picture blackcrack  路  3Comments

craigo- picture craigo-  路  3Comments

bravo-hero picture bravo-hero  路  3Comments

hpwamr picture hpwamr  路  4Comments