Re: [TSE] Re: open file at cursor

45 views
Skip to first unread message

knud van eeden

unread,
Feb 6, 2026, 10:02:24 AM (14 days ago) Feb 6
to sem...@googlegroups.com
> Guy Rouillier wrote 
> mEditFileAtCursor

FYIO

Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence

On Tue, May 22, 2007 at 23:42, Carlo Hogeveen



Hi noman9607,

Below your message I copied a message exchange from March 1997.
A difference: nowadays "qedit.ui" is called "tsejr.ui".

Carlo



-----Original Message-----
Behalf Of noman9607
Sent: dinsdag 22 mei 2007 18:28
To: SemWare
Subject: [TSE] open file at cursor

There is a feature in another editor called "open file at cursor" that
will open a file
if the cursor is located within a valid path-filename. If there are
spaces the path-filename
must be in double quotes but I find this feature very handy but it
would be even better
in TSE because of the very fast search Grep in files feature. Of
course the
"View Finds" window is handy but sometimes I need to search the "Edit
this list" hardcopy
if I have used the verbose mode or there are many files returned.

How can I implement something like "open file at cursor" in a TSE
macro?





-----Original Message-----
Behalf Of Carlo Hogeveen
Sent: zondag 2 maart 1997 9:11
Subject: Re: New to list (question)

If you have installed TSE "as Qedit", then you can use <ctrl ]> instead.

If you have installed TSE "as TSE", then you have to copy the following
lines from the file "qedit.ui" to the file "tse.ui" and recompile "tse.ui":

proc mEditFileAtCursor()
    string  wset[32] = Set(WordSet,
ChrSet("A-Za-z0-9_!#$%&`()./\\@{}~:^'-"))

    PushBlock()
    UnMarkBlock()
    MarkWord()
    EditFile(GetMarkedText())
    PopBlock()
    Set(WordSet, wset)
end

<Ctrl ]>                    mEditFileAtCursor()

Ofcourse you can in either case replace <ctrl ]> by <alt ]>
and recompile the appropriate "*.ui" file.

Carlo

----------
> From: William Bonnell <bon...@kodak.com>
> To: TSE Mail list <tse...@semware.com>
> Subject: New to list (question)
> Date: zondag 2 maart 1997 1:08
>
> I just joined this list and am wondering if there is a TSEPro way of
> editing the file at the cursor position in a text file.  This used to be
> done in Qedit by Alt ].  Thanks.
> --
> William Bonnell
> US&C Consulting Services
> Eastman Kodak Company

knud van eeden

unread,
Feb 6, 2026, 10:11:07 AM (14 days ago) Feb 6
to sem...@googlegroups.com
That definitely looks general and as simple as possible enough to be running out of the box in TSE for Linux also.
I plan to check it out. 


Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence

knud van eeden

unread,
Feb 6, 2026, 11:17:24 AM (14 days ago) Feb 6
to sem...@googlegroups.com
> Guy Rouillier 
> 2026 Fri, Feb 6 at 9:04 AM
> I got a mEditFileAtCursor macro probably 20 years ago, and I have no idea where I got it from.  It works, so I continue to use it.  It > > has the ChrSet set as this:
> ChrSet("A-Za-z0-9_!#$%&`()./\\@{}~:^'-")

---

The origin is thus in your see 'tsejr.ui' file located in the TSE 'ui' subdirectory.


Inline image


--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/885512632.1083904.1770390131985%40mail.yahoo.com.

knud van eeden

unread,
Feb 6, 2026, 7:12:48 PM (13 days ago) Feb 6
to sem...@googlegroups.com
Hello,

FYI

with friendly greetings
Knud van Eeden

On Wednesday, May 23, 2007 at 12:58:35 AM GMT+2, Sam Mitchell <sammy.m...@gmail.com> wrote:



On 5/22/07, noman9607 wrote:

> There is a feature in another editor called "open file at
> cursor" that will open a file if the cursor is located within a
> valid path-filename. If there are spaces the path-filename must
> be in double quotes but I find this feature very handy but it
> would be even better in TSE because of the very fast search
> Grep in files feature. Of course the "View Finds" window is
> handy but sometimes I need to search the "Edit this list"
> hardcopy if I have used the verbose mode or there are many
> files returned.
>
> How can I implement something like "open file at cursor" in a
> TSE macro?

I think there is a macro or two on our site that will do this.
In addition, I believe the tsejr.ui file includes a simple
edit_file_at_cursor macro.

Below is one that while not quite as simple, does work with
spaces, as long as the name is marked or is delimited with '"' or
'<name>'.  If the name does not contain spaces, the delimiters
and/or marking are not required.

/***************************************************************
Load a file, whose filename is at the cursor position.

Assigned to <CtrlShift e> in this macro

Examples:

Given two files, "test spaces.s" and "test.it":

case 1  test spaces.s    - must be marked as a block
case 2  <test spaces.s>  - no need for block
case 3  "test spaces.s"  - no need for block
case 4  "test spaces.s
case 5  <test spaces.s
case 6  test.it          - simple filename
          test spaces.s>    - works if no other text to left
          test spaces.s"    - works if no other text to left

case 4:  works, as long as no extraneous text to the right
case 5:  works, as long as no extraneous text to the right

In cases 2, 3, 4, 5, and 7, the cursor can also be placed on
(either) delimiter.

***************************************************************/

integer proc is_left_delimiter()
  string delim[1]
  integer found_it

  // check current character for:

  // 1) '<', return found it
  delim = GetText(CurrPos(), 1)
  if delim == '<'
    return (True)
  endif

  // 2) '"', and another to the right
  // return found it
  if delim == '"'
    PushPosition()
    if lFind('"', "c+")
      PopPosition()
      return (True)
    endif
    PopPosition()
    // if a '"' to the left, return not found
    PushPosition()
    found_it = lFind('"', "bc")
    PopPosition()
    return (not found_it)
  endif

  // otherwise, look to the left '"' or '<'
  return (lFind('\"|\<', "bcx"))
end

proc edit_file_at_cursor()
  string fn[_MAX_PATH_], delim[1]

  if isBlockInCurrFile()
    EditThisFile(GetMarkedText())
    return ()
  endif

  // no block in this file - preserve blocks in other files
  PushBlock()
  PushPosition()
  UnMarkBlock()

  // check for delimiter on left - right delimiter not required
  if is_left_delimiter()
    delim = iif(GetText(CurrPos(), 1) == '"', '"', '>')
    Right()
    MarkChar()
    if not lFind(delim, "c")
      EndLine()
    endif
  else
    // check for delimiter on right - left delimiter not required
    if not lFind('\"|\>', "cx") and not lFind(" ", "c")
      EndLine()
    endif
    MarkChar()
    case GetText(CurrPos(), 1)
      when '>'
        if not lFind('<', "bc")
          BegLine()
        endif
      when '"'
        if not lFind('"', "bc")
          BegLine()
        endif
      otherwise
        if not lFind(" ", "bc")
          BegLine()
        endif
    endcase
  endif
  fn = GetMarkedText()
  PopPosition()
  PopBlock()
  EditThisFile(fn)
end

<CtrlShift e> edit_file_at_cursor()

--
Sam Mitchell

knud van eeden

unread,
Feb 6, 2026, 7:33:01 PM (13 days ago) Feb 6
to sem...@googlegroups.com
Hello,

How to: Put the cursor on the filename to load or run and press any of the keys or click with the left button of the mouse on it.

A latest version 1.0.0.0.36 loadfile_cursor.s which:

1. works in TSE for Microsoft Windows (tested in 4.50.19)

2. works in TSE for Linux WSL (tested in 4.50.14)

3. mouse left click in Microsoft Windows only

4. Keys: <Alt ]> or <Ctrl ]> or <Alt Enter> or <Ctrl k><u>

5. works with filenames with spaces, but must be between double quotes "".

6. Loads filenames with given extensions automatically

7. checks other filenames optionally and or load and or optionally run

8. If image.s is installed then can load image files in TSE 

9. checks URL run (https, http, ftp, ftps, file:///)

10. gets and runs email addresses in browser and or email client.
loadfile_cursor.s

knud van eeden

unread,
Feb 7, 2026, 9:59:18 PM (12 days ago) Feb 7
to sem...@googlegroups.com
How to:

 Put the cursor on the filename to load or run
 Then press any of the keys
 or click with the left button of the mouse on it
 or execute this TSE macro (while the cursor is on the filename).

A latest version 1.0.0.0.52 of loadfile_cursor.s which:

 1. Converts the filename automatically to the operating system currently active
    E.g. c:\temp\foobar.txt is automatically converted to /mnt/c/temp/foobar.txt on Linux WSL.

 2. Loads filename (looks first in current TSE directory, then complete full path else gives up)

 3. Space: Filenames with spaces in the name will be and or loaded and or run.
    Note: But you will currently have to click on the part of string
    just after the left double quote and before the first space.

 4. Runs (assumed all) URLs and runs it in your default browser
    (https, http, ftp, ftps, file:///)

 5. Gets and creates emails in your email client (implemented in browser for Yahoo, GMail, Microsoft Office, default email client)

 6. Works in TSE for Microsoft Windows (tested in 4.50.19)

 7. Works in TSE for Linux WSL (tested in 4.50.14)

 8. Not tested in TSE for Linux non-WSL yet, maybe later

 9. Mouse: left button click works in Microsoft Windows

10. Mouse: left button click works in Linux WSL (but the 'linuxmouse' macro must be installed)
           then if putting the cursor on the unmarked line with the filename
           and then left button clicking it works in TSE for Linux also.

11. Keys: <Alt ]> or <Ctrl ]> or <Alt Enter> or <Ctrl k><u>

12. Loads filenames with some pre-defined by you given extensions (e.g. .txt, .s, ...) automatically

13. Checks other filenames optionally and or load and or optionally run

14. If image.s is installed then can load image files in TSE by clicking with the mouse on the graphics filename.


loadfile_cursor.s

Jose Adriano Baltieri

unread,
Feb 8, 2026, 4:26:33 AM (12 days ago) Feb 8
to sem...@googlegroups.com
Hi !

A challenge/suggestion :

Should the cursor be on a DATE, we'd open Tessie Calendar Macro ON THAT DATE ! The challenge is to recognize *all* different date formats. Just to name a few dd/mm/yyyy (Brazil) , or mm/dd/yyyy (Eua) or yyyy-mm-dd (ISO) or yyyy-mm-dd yyyymmdd etc etc...


--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.


--


Grato,
Jose Adriano Baltieri

knud van eeden

unread,
Feb 8, 2026, 10:07:08 PM (11 days ago) Feb 8
to sem...@googlegroups.com
Hello,

How to:

 First put the mouse cursor on the filename to load or run
 and make sure the cursor line is at that line too.

 Then press any of the keys.

 Or click with the left button of the mouse on it

 Or execute this TSE macro (while the mouse cursor and the cursor line is on the filename).

===

A latest version loadfile_cursor.s which:

 1. Date:

     1. That date must not contain any spaces

     2. The separator can be a '/', '-' or a '\'

     3. That date must be in the same format as you use locally, e.g. in the United States that would be MM/DD/YYYY, e.g. 01/31/2026.

     4. When then clicking on such a date
         a TSE calendar at that date
         + opens Google calendar
         + opens Microsoft Live calendar
         + opens Microsoft Outlook calendar

     5. Note: The date format expected is thus always the same as set in your TSE settings.
              So that should be set to your local country date format thus, so using that out of the box.

              You can check your dateformat set via this program

               PROC Main()
                Warn( Query( dateFormat ) )
               END

              where 1=MM/DD/YY, 2=DD/MM/YY, 3=YY/MM/DD, 4=MM/DD/YYYY, 5=DD/MM/YYYY, 6=YYYY/MM/DD

     6. Note: You should have downloaded and compiled calendar_parameter.s.
              Put the compiled calendar_parameter.s in the same directory as loadfile_cursor.s.

 2. Converts the filename automatically to the operating system currently active
    E.g. c:\temp\foobar.txt is automatically converted to /mnt/c/temp/foobar.txt on Linux WSL.

 3. Loads filename (looks first in current TSE directory, then complete full path else gives up)

 4. Space: Filenames with spaces in the name will be and or loaded and or run.
    Note: But you will currently have to click on the part of string
    just after the left double quote and before the first space.

 5. Runs (assumed all) URLs and runs it in your default browser
    (https, http, ftp, ftps, file:///)

 6. Gets and creates emails in your email client (implemented in browser for Yahoo, GMail, Microsoft Office, default email client)

 7. Works in TSE for Microsoft Windows (tested in 4.50.19)

 8. Works in TSE for Linux WSL (tested in 4.50.14)

 9. Not tested in TSE for Linux non-WSL yet, maybe later

10. Mouse: Left button click works in Microsoft Windows

11. Mouse: Left button click works in Linux WSL (but the 'linuxmouse' macro must be installed)
           then if putting the cursor on the unmarked line with the filename
           and then left button clicking it works in TSE for Linux also.

12. Keys: <Alt ]> or <Ctrl ]> or <Alt Enter> or <Ctrl k><u>

13. Loads filenames with some pre-defined by you given extensions (e.g. .txt, .s, ...) automatically

14. Checks other filenames optionally and or load and or optionally run

15. If image.s is installed then can load image files in TSE by clicking with the mouse on the graphics filename.


loadfile_cursor.s
calendar_parameter.s

knud van eeden

unread,
Feb 9, 2026, 6:25:11 PM (10 days ago) Feb 9
to sem...@googlegroups.com
Hello,

How to:

 First put the mouse cursor on the filename to load or run
 and make sure the cursor line is at that line too.

 Or mark the block (e.g. first <Alt k> then <Alt k> again)

 Then press any of the defined keys.

 Or click with the left button of the mouse on it

 Or execute this TSE macro (while the mouse cursor and the cursor line is on the filename).

===

A latest version loadfile_cursor.s which:

 1. See attached

     loadfile_cursor.s

     calendar_parameter.s

     Mouse: LinuxMouse.s can be downloaded here: https://ecarlo.nl/tse/ToolsAndExtensions.html#LinuxMouse

 2. Works: In TSE for Linux non-WSL (tested in Ubuntu) (tested in TSE version 4.50.19)

            Note: Expect a slow response in general, it is not really hanging thus, advised to be patient.

            Note: When clicking a URL It might take minutes before FireFox opens, so that is as expected.

            Note: Use full screen

 3. Works: In TSE for Microsoft Windows (tested in TSE version 4.50.19)

            Note: Use full screen

 4. Works: In TSE for Linux WSL (tested in TSE version 4.50.14)

 5. Filename: Date: Click on date formats like MM-DD-YYYY, DD-MM-YYYY, DD-MM-YY, YYYY-MM-DD, ...

     1. Note: You should have once downloaded and compiled the file

               calendar_parameter.s.

              It was attached to the email.
              Put this compiled calendar_parameter.s in the same directory as the file loadfile_cursor.s.

     2. When then clicking on a valid date

         1. Opens a TSE calendar at that date

         2. Opens Google calendar at that date

         3. Opens Microsoft Live calendar at that date (actually an event at that date, something else was not possible by current Microsoft design)

         4. Opens Microsoft Outlook calendar  at that date (actually an event at that date, something else was not possible by Microsoft design)

     3. That date can contain any spaces (e.g. 01 31 2026, but then you must mark the date block (<Alt k> and <Alt k>)

     4. The date separator can be one of these: '/', '-', '\'

     5. In TSE these date formats are defined: 1=MM/DD/YY, 2=DD/MM/YY, 3=YY/MM/DD, 4=MM/DD/YYYY, 5=DD/MM/YYYY, 6=YYYY/MM/DD

     6. To determine the (ambiguous) date format it uses the dateformat as set or which you have set in the TSE settings.
        The default is 4, the United States notation that would be MM/DD/YYYY, e.g. 01/31/2026.

         You can check your TSE dateformat currently set via this TSE program

          PROC Main()
           Warn( Query( dateFormat ) )
          END

         You can optionally set or change your TSE dateformat used 4in the current TSE session. If you want to permanently save it save it via you settings

          PROC Main()
           Set( dateFormat, 4 ) // sets it to 4=MM/DD/YYYY
           // Set( dateFormat, 5 ) // sets it to 5=DD/MM/YYYY
          END

 6. Filename: Convert: Automatically: The filename you click on is automatically
    converted to the operating system currently active.

     E.g. when working in Linux WSL then clicking

           c:\temp\foobar.txt

          this is automatically converted to

           /mnt/c/temp/foobar.txt

 7. Filename: Load: Run: Loads or runs filename (looks first in current TSE directory, then complete full path else gives up)

 8. Filename: Load: Run: Checks other filenames optionally and or load and or optionally run

 9. Filename: Load: Default: Loads filenames with some pre-defined by you given extensions (e.g. .txt, .s, ...) automatically

10. Filename: Space: Filenames with spaces in the name will be and or loaded and or run.

     Note: But you will currently have to click on the part of string
           just after the left double quote and before the first space.

            E.g. you must click on the 'Red' in the example below:

                  "Red Hat Linux 8"

           Otherwise you must mark the date block (<Alt k> and <Alt k>)

11. Filename: URL: Runs (assumed all) URLs and runs it in your default browser (https, http, ftp, ftps, file:///)

12. Filename: Email: Gets and creates emails in your email client
                     (implemented in browser for Yahoo, GMail, Microsoft Office, default email client)

13. Filename: Graphics: Image: View: If image.s is installed then can load image files in TSE by clicking with the mouse
                                     on the graphics filename.

     Note: This will only work in Microsoft Windows. E.g. IrfanView is only available for Microsoft Windows, not for Linux.

14. Keys: Defined: <Alt ]> or <Ctrl ]> or <Alt Enter> or <Ctrl k><u>

15. Mouse: Microsoft Windows: Left button click works

16. Mouse: Linux: WSL: Left button click works in Linux WSL (but the 'linuxmouse' macro must be installed)
                       then if putting the cursor on the unmarked line with the filename
                       and then left button clicking it works in TSE for Linux WSL also.

17. Mouse: Linux: non-WSL: Left button click works in Linux non-WSL (but the 'linuxmouse' macro must be installed)
                           then if putting the cursor on the unmarked line with the filename
                           and then left button clicking it works in TSE for Linux non-WSL also.

18. Test examples
(put the cursor on the filename and run this TSE macro or click with the mouse on the filename
 or mark the block (<Alt k> and <Alt k>).

===

Filename:

A filename with spaces:
 You must mark the date block (<Alt k> at the beginning and <Alt k> at the end)
 or otherwise it must be put between double quotes
 and put the cursor or mouse on the most left most part (='Linux') in this below example:

"Linux Red Hat version 8"

foobar.txt
c:\temp\foobar.txt
/mnt/c/temp/foobar.txt
/home/knudvaneeden/c/temp/foobar.txt
/usr/temp/foobar.txt
usr/temp/foobar.txt

ddd.txt
c:\temp\ddd.txt
/mnt/c/temp/ddd.txt
/home/knudvaneeden/c/temp/ddd.txt
/usr/temp/ddd.txt
usr/temp/ddd.txt

ddd.go
c:\temp\ddd.go
/mnt/c/temp/ddd.go
/home/knudvaneeden/c/temp/ddd.go
/usr/temp/ddd.go
usr/temp/ddd.go

ddd.pdf
c:\temp\ddd.pdf
/mnt/c/temp/ddd.pdf
/home/knudvaneeden/c/temp/ddd.pdf
/usr/temp/ddd.pdf
usr/temp/ddd.pdf

ddd.htm
c:\temp\ddd.htm
/mnt/c/temp/ddd.htm
/home/knudvaneeden/c/temp/ddd.htm
/usr/temp/ddd.htm
usr/temp/ddd.htm

ddd.html
c:\temp\ddd.html
/mnt/c/temp/ddd.html
/home/knudvaneeden/c/temp/ddd.html
/usr/temp/ddd.htm
usr/temp/ddd.htm

/home/knudvaneeden/Downloads/knud/calendar_parameter.s
/home/knudvaneeden/Downloads/knud/loadfile_cursor.s
/user/bin/grep

===

URL:





file:///c:\temp\ddd.htm
file:///mnt/c/temp/ddd.htm
file:////home/knudvaneeden/c/temp/ddd.htm

file:///c:\temp\ddd.html
file:///mnt/c/temp/ddd.html
file:////home/knudvaneeden/c/temp/ddd.html

===

Email:



===

Date:

02-08-2026
02/08/2026
02\08\2026

08-02-2026
08/02/2026
08\02\2026

8-2-2026
8/2/2026
8\2\2026

2026-08-02
2026/08/02
2026\08\02

2026-8-2
2026/8/2
2026\8\2

2-8-2026
2/8/2026
2\8\2026

8-2-26
8/2/26
8/2/26

25-04-26
25/04/26
25\04\26

If spaces in the dates mark the date block using goto beginblock then <Alt K> then end block <Alt k>.

8 2 26
2 8 26
2 8 2026
2026 2 8

with friendly greetings
Knud van Eeden

calendar_parameter.s
loadfile_cursor.s

knud van eeden

unread,
Feb 9, 2026, 10:44:49 PM (10 days ago) Feb 9
to sem...@googlegroups.com
Hello,

How to:

 First put the mouse cursor on the filename to load or run
 and make sure the cursor line is at that line too.

 Or mark the block (e.g. first <Alt k> then <Alt k> again)

 Then press any of the defined keys.

 Or click with the left button of the mouse on it

 Or execute this TSE macro (while the mouse cursor and the cursor line is on the filename).

===

A latest version 1.0.0.123 of loadfile_cursor.s which:

 1. See attached

     1. loadfile_cursor.s

     2. calendar_parameter.s

     3. Mouse: LinuxMouse.s can be downloaded here: https://ecarlo.nl/tse/ToolsAndExtensions.html#LinuxMouse
               Note: Should be installed only on Linux WSL or Linux non-WSL, thus not on Microsoft Windows.

 2. Works: In TSE for Linux non-WSL (tested in Ubuntu) (tested in TSE version 4.50.19)

            Note: You will have to press a few times <ENTER> (e.g. 3 times)

            Note: Use full screen if applicable (e.g. if seeing 'menu too large')

 3. Works: In TSE for Microsoft Windows (tested in TSE version 4.50.19)

            Note: Use full screen if applicable (e.g. if seeing 'menu too large')

 4. Works: In TSE for Linux WSL (tested in TSE version 4.50.14)

 5. Filename: Date: Click on date formats like MM-DD-YYYY, DD-MM-YYYY, DD-MM-YY, YYYY-MM-DD, ...

     1. Note: You should have once downloaded and compiled the file

               calendar_parameter.s.

              It was attached to the email.
              Put this compiled calendar_parameter.s in the same directory as the file loadfile_cursor.s.

     2. When then clicking on a valid date

         1. Opens a TSE calendar at that date

         2. Opens Google calendar at that date

         3. Opens Microsoft Live calendar at that date (actually an event at that date, something else was not possible by current Microsoft design)

         4. Opens Microsoft Outlook calendar  at that date (actually an event at that date, something else was not possible by Microsoft design)

     3. That date can contain any spaces (e.g. 01 31 2026, 4 April 2026, 17 April 2026. 25 April 2026, 25 August 2026, ...
        but then you must mark the date block (<Alt k> and <Alt k>)

     4. The date separator can be one of these: '/', '-', '\', ' ', '.', '<Tab>'

     5. In TSE these date formats are defined: 1=MM/DD/YY, 2=DD/MM/YY, 3=YY/MM/DD, 4=MM/DD/YYYY, 5=DD/MM/YYYY, 6=YYYY/MM/DD

     6. To determine the (ambiguous) date format it uses the dateformat as set or which you have set in the TSE settings.
        The default is 4, the United States notation that would be MM/DD/YYYY, e.g. 01/31/2026.

         You can check your TSE dateformat currently set via this TSE program

          PROC Main()
           Warn( Query( dateFormat ) )
          END

         You can optionally set or change your TSE date format used in your current TSE session. If you want to permanently save it save it via your settings
/usr/bin/grep

===

URL:





file:///c:\temp\ddd.htm
file:///mnt/c/temp/ddd.htm
file:////home/knudvaneeden/c/temp/ddd.htm

file:///c:\temp\ddd.html
file:///mnt/c/temp/ddd.html
file:////home/knudvaneeden/c/temp/ddd.html

===

Email:



===

Date:

02-08-2026
02/08/2026
02\08\2026
02.08.2026

08-02-2026
08/02/2026
08\02\2026
08.02.2026

8-2-2026
8/2/2026
8\2\2026
8.2.2026

2026-08-02
2026/08/02
2026\08\02
2026.08.02

2026-8-2
2026/8/2
2026\8\2
2026.8.2

2-8-2026
2/8/2026
2\8\2026
2.8.2026

8-2-26
8/2/26
8/2/26
8.2.26

25-04-26
25/04/26
25\04\26
25.04.26

If spaces in the dates mark the date block using goto beginblock then <Alt K> then end block <Alt k>.

8 2 26
2 8 26
2 8 2026
2026 2 8

4 April 2026
17 April 2026
25 April 2026
25 August 2026

loadfile_cursor.s
calendar_parameter.s

Jose Adriano Baltieri

unread,
Feb 10, 2026, 5:01:33 AM (10 days ago) Feb 10
to sem...@googlegroups.com
Thank U !

Since you've touched the old Calendar Macro, here are some more wishes :

  1. Why it's Help Line do not appear (keydef CalKeys) ?
  2. I'd love to be able to do Date Math with it. Say : today + 30 days (or any date +/- n days). Maybe calling repeatedly NextDay() function..
Thanks again !

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

knud van eeden

unread,
Feb 10, 2026, 6:27:34 PM (9 days ago) Feb 10
to sem...@googlegroups.com
How to:

 First put the mouse cursor on the filename to load or run
 and make sure the cursor line is at that line too.

 Or mark the block (e.g. first <Alt k> then <Alt k> again)

 Then press any of the defined keys.

 Or click with the left button of the mouse on it

 Or execute this TSE macro (while the mouse cursor and the cursor line is on the filename).

===

A latest version loadfile_cursor.s:

 1. See attached

     1. loadfile_cursor.s version 1.0.0.129 (works in Microsoft Windows, Linux WSL, Linux non-WSL)

         1. Running web pages in browser in Linux non-WSL vastly improved (no more waiting or <Return> necessary

     2. calendar_parameter.s version 1.7 (works in Microsoft Windows, Linux WSL, Linux non-WSL)

         1. Pass the date as 3 parameters. Optional 4th parameter to inform about the date format

         2. Implements date arithmetic: <Ctrl D>: Add or subtract days to the current date

         3. Implements date arithmetic: <Ctrl N>: Calculate the total amount of days between current date and other date

         4. Shows a calendar help menu for the keys to use (press <F1> while calendar is running)

     3. Mouse: LinuxMouse.s can be downloaded here: https://ecarlo.nl/tse/ToolsAndExtensions.html#LinuxMouse

               Note: Should be installed only on Linux WSL or Linux non-WSL, thus not on Microsoft Windows.

 2. Use the full TSE screen when applicable (e.g. if seeing 'menu too large')

 3. Works: In TSE for Linux non-WSL (tested in Ubuntu) (tested in TSE version 4.50.19)

 4. Works: In TSE for Microsoft Windows (tested in TSE version 4.50.19)

 5. Works: In TSE for Linux WSL (tested in TSE version 4.50.14)

 6. Filename: Date: Click on date formats like MM-DD-YYYY, DD-MM-YYYY, DD-MM-YY, YYYY-MM-DD, ...

     1. Note: You should have once downloaded and compiled the file

               calendar_parameter.s.

              It was attached to the email.
              Put this compiled calendar_parameter.s in the same directory as the file loadfile_cursor.s.

     2. When then clicking on a valid date

         1. Opens a TSE calendar at that date

         2. Opens Google calendar at that date

         3. Opens Microsoft Live calendar at that date (actually an event at that date, something else was not possible by current Microsoft design)

         4. Opens Microsoft Outlook calendar  at that date (actually an event at that date, something else was not possible by Microsoft design)

     3. That date can contain any spaces (e.g. 01 31 2026, 4 April 2026, 17 April 2026, 25 April 2026, 25 August 2026, ...
        but then you must mark the date block (<Alt k> and <Alt k>)

     4. The date separator can be one of these: '/', '-', '\', ' ', '.', '<Tab>'

     5. In TSE these date formats are defined: 1=MM/DD/YY, 2=DD/MM/YY, 3=YY/MM/DD, 4=MM/DD/YYYY, 5=DD/MM/YYYY, 6=YYYY/MM/DD

     6. To determine the (ambiguous) date format it uses the dateformat as set or which you have set in the TSE settings.
        The default is 4, the United States notation that would be MM/DD/YYYY, e.g. 01/31/2026.

         You can check your TSE dateformat currently set via this TSE program

          PROC Main()
           Warn( Query( dateFormat ) )
          END

         You can optionally set or change your TSE date format used in your current TSE session. If you want to permanently save it save it via your settings

          PROC Main()
           Set( dateFormat, 4 ) // sets it to 4=MM/DD/YYYY
           // Set( dateFormat, 5 ) // sets it to 5=DD/MM/YYYY
          END

 7. Filename: Convert: Automatically: The filename you click on is automatically
    converted to the operating system currently active.

     E.g. when working in Linux WSL then clicking

           c:\temp\foobar.txt

          this is automatically converted to

           /mnt/c/temp/foobar.txt

 8. Filename: Load: Run: Loads or runs filename (looks first in current TSE directory, then complete full path else gives up)

 9. Filename: Load: Run: Checks other filenames optionally and or load and or optionally run

10. Filename: Load: Default: Loads filenames with some pre-defined by you given extensions (e.g. .txt, .s, ...) automatically

11. Filename: Space: Filenames with spaces in the name will be and or loaded and or run.

     Note: But you will currently have to click on the part of string
           just after the left double quote and before the first space.

            E.g. you must click on the 'Red' in the example below:

                  "Red Hat Linux 8"

           Otherwise you must mark the date block (<Alt k> and <Alt k>)

12. Filename: URL: Runs (assumed all) URLs and runs it in your default browser (https, http, ftp, ftps, file:///)

13. Filename: Email: Gets and creates emails in your email client
                     (implemented in browser for Yahoo, GMail, Microsoft Office, default email client)

14. Filename: Graphics: Image: View: If image.s is installed then can load image files in TSE by clicking with the mouse
                                     on the graphics filename.

     Note: This will only work in Microsoft Windows. E.g. IrfanView is only available for Microsoft Windows, not for Linux.

15. Keys: Defined: <Alt ]> or <Ctrl ]> or <Alt Enter> or <Ctrl k><u>

16. Mouse: Microsoft Windows: Left button click works

17. Mouse: Linux: WSL: Left button click works in Linux WSL (but the 'linuxmouse' macro must be installed)
                       then if putting the cursor on the unmarked line with the filename
                       and then left button clicking it works in TSE for Linux WSL also.

18. Mouse: Linux: non-WSL: Left button click works in Linux non-WSL (but the 'linuxmouse' macro must be installed)
                           then if putting the cursor on the unmarked line with the filename
                           and then left button clicking it works in TSE for Linux non-WSL also.

19. Test examples
Inline image

Inline image
calendar_parameter.s
loadfile_cursor.s
Reply all
Reply to author
Forward
0 new messages