TSE: Feature: Request: 'File' > 'List Recent' should also have a write to file option in the footer menu

2 views
Skip to first unread message

knud van eeden

unread,
Mar 2, 2023, 5:27:40 AM3/2/23
to SemWare TSE Pro Text Editor
Hello,

TSE: Feature: Request: 

1. 'File' > 'List Recent' should also have a write to file option in the footer menu

2. The general idea is that (all/many) List() should have a 'write to file' in order that the user gets
the information in readable flat text format.

3. Reproduction: TSE menu 'File' > 'List Recent' > shows footer menu, but no option to write to file the list of recent files.

Thanks
with friendly greetings
Knud van Eeden

Inline image

knud van eeden

unread,
Mar 2, 2023, 7:14:34 PM3/2/23
to SemWare TSE Pro Text Editor
To add a save the 'Recent' list to file also in 'File Recent' do something similar like this:

1. Backup the .ui file(s)

2. In the .ui file(s) locate this line:

string recent_files_footer[] = " {Del}-Delete entry {Alt-Del}-Cleanup List" 

3. Replace it to include the new option:

string recent_files_footer[] = " {Del}-Delete entry {Alt F}-SaveFile {Alt Del}-Cleanup List" 

4. -Then locate this and add your implementation option.

keydef RecentFilesKeys
...
<Alt f>     PushPosition() PushBlock() SaveAs( "c:\temp\ddd2.txt", _OVERWRITE_ ) Warn( "Saved as c:\temp\ddd2.txt" ) PopPosition() PopBlock()
...
end

5. -Then save that .ui

6. -Backup your g32.exe

7. -Burn the .ui

sc32.exe -b your.ui

8. Restart TSE

9. When choosing <ALT F> it will save the list.

10. In this particular case it is kind of binary, so do e.g. a regular expression search replace in the result, e.g.

LReplace( Format( "[\d000-\d032", "'", '#&"$]' ), "gx" )



Reply all
Reply to author
Forward
0 new messages