Search found 2461 matches
- Thu Jul 25, 2024 1:11 pm
- Forum: General
- Topic: TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it
- Replies: 4
- Views: 5002
Re: TextPad Help says regex $0 for selected text corresponds to & in old syntax but the Find function can't match it
As AmigoJack writes, using $0 in a search expression makes no sense. It matches the end of a line ( $ ) followed by a " 0 ". But that sequence exists nowhere, as the end of a line is followed by a newline character sequence (1 or 2 characters). Keep in mind that regexes and replacements are entirely ...
- Thu Jul 11, 2024 3:46 pm
- Forum: Enhancement Suggestions
- Topic: TWS file format
- Replies: 4
- Views: 6047
Re: TWS file format
I posted a Python script that lists the names of the document files in a workspace file here:
viewtopic.php?p=45822#p45822
viewtopic.php?p=45822#p45822
- Wed Jun 26, 2024 10:02 am
- Forum: Enhancement Suggestions
- Topic: Character code viewer
- Replies: 7
- Views: 6156
Re: Character code viewer
My comment was primarily about this: code point U+00D8 in UTF-8 Did you mean Unicode? UTF-8 is not a character set. And 0x00D8 on its own isn't a UTF-8 encoding of any code point, Unicode or otherwise. It could be the first of a pair of bytes, the second of which must be in the range 0x80..0xBF ...
- Tue Jun 25, 2024 1:06 pm
- Forum: Enhancement Suggestions
- Topic: Character code viewer
- Replies: 7
- Views: 6156
Re: Character code viewer
code point U+00D8 in UTF-8 encoded as bytes "0xC3 0x89" The UTF-8 encoding of Unicode code point U+00D8 is 0xC3 0x98 , not 0xC3 0x89 . (They must end with the same hex digit.) The layout above suggests that the value of a Unicode code point depends on the encoding used to store or transmit it. This ...
- Mon Jun 03, 2024 1:49 pm
- Forum: General
- Topic: Bug v9.4.1 Sometimes "\n" is added to pastes in "Find.." and "Find in files...".
- Replies: 4
- Views: 5234
Re: Bug v9.4.1 Sometimes "\n" is added to pastes in "Find.." and "Find in files...".
If block select mode is on, TextPad treats a selection as a sequence of lines, even if it's within a single line, and appends a "\n" to each line in the selection. I believe this behaviour was introduced fairly recently. It's not always what you want, as TextPad will not find a match unless regular ...
- Fri Apr 19, 2024 7:35 am
- Forum: General
- Topic: Old search strings can no longer be deleted in dialogue boxes
- Replies: 11
- Views: 6891
Re: Old search strings can no longer be deleted in dialogue boxes
History lists were added in versions 9.1.0 and 8.16.0 (in February 2023).
- Wed Apr 10, 2024 9:32 am
- Forum: General
- Topic: Version 9 -- Feedback
- Replies: 5
- Views: 7467
Re: Version 9 -- Feedback
I haven't studied version 9 to the depth you have, but I agree that the colours aren't ideal. Neither the light nor the dark theme supports my eyes. I have many overlapping document windows open, and I need to be able to see at a glance which is the active document. I find this difficult with ...
- Tue Mar 19, 2024 11:16 am
- Forum: Enhancement Suggestions
- Topic: Recent files >16
- Replies: 8
- Views: 20082
Re: Recent files >16
I have now have all of the TWS files in a single directory. Since the files seem to contain relative file paths, they needed to be individually loaded and re-saved rather than just moved across. You just need to save the workspace into the new location. For any file not in (or below?) the directory ...
- Wed Feb 28, 2024 3:39 pm
- Forum: Enhancement Suggestions
- Topic: Recent files >16
- Replies: 8
- Views: 20082
Re: Recent files >16
Here's a Python script that outputs the names of the document files in a workspace file. It handles both very old-style (TextPad version < 7) ASCII workspace files and newer UTF-16 ones. (Note: workspace version numbers are not the same as TextPad version numbers.) If you happen to have Python ...
- Wed Feb 28, 2024 10:34 am
- Forum: Enhancement Suggestions
- Topic: Recent files >16
- Replies: 8
- Views: 20082
Re: Recent files >16
I also would like longer lists. However, I always use workspaces and I don't have much need for the recently-used document file list. As for workspaces (I have far more than 50 of them), I keep them all in a single directory, d:\t . I can list them at the command line by entering dir d:\t , or get ...
- Wed Feb 07, 2024 10:35 am
- Forum: General
- Topic: Reload Last Workspace Not Working
- Replies: 3
- Views: 3201
Re: Reload Last Workspace Not Working
Do you mean the option Configure | Preferences | General | Reload last workspace at startup ?
Agreed. It doesn't work (18.8.0) here either.
Agreed. It doesn't work (18.8.0) here either.
- Wed Jan 03, 2024 9:09 am
- Forum: General
- Topic: macro language reference
- Replies: 2
- Views: 4032
Re: macro language reference
If you search the help for "edit macros" you will be directed to a page entitled How to Edit Macros that is also accessible from the help contents page as How To... | Use keystroke macros | Editing You can produce a list of commands with C onfigure | P references | Keyboard | C ategories: All | L ...
- Sun Dec 03, 2023 3:18 pm
- Forum: Enhancement Suggestions
- Topic: Command — Strip trailing spaces
- Replies: 4
- Views: 9880
Re: Command — Strip trailing spaces
When you create a macro it automatically becomes available as a menu command. And you can give it whatever keyboard shortcut you please.
- Tue Nov 28, 2023 10:12 am
- Forum: Enhancement Suggestions
- Topic: Command — Strip trailing spaces
- Replies: 4
- Views: 9880
Re: Command — Strip trailing spaces
You can save this as a macro:Search | Replace... (<F8>):
Find what: _+$ [Replace the underscore with a space]
Replace with: [nothing]
[X] Regular expression
Replace All
Replace = " +$", "", RegExp
DoReplaceAll
- Mon Oct 09, 2023 5:00 pm
- Forum: General
- Topic: Replace . (period) with \n (new line)
- Replies: 5
- Views: 6088
Re: Replace
The replacement expression isn't a regular expression and the sequence " \n " isn't (specifically) a regular expression However, TextPad requires that you specify Regular e xpression when using escape sequences such as " \n ", in either the search expression or the replacement expression. But the ...