Skip to content

Patch 1 - #402

Merged
pryrt merged 11 commits into
notepad-plus-plus:masterfrom
sbhyde-superstar:patch-1
Jul 20, 2026
Merged

Patch 1#402
pryrt merged 11 commits into
notepad-plus-plus:masterfrom
sbhyde-superstar:patch-1

Conversation

@sbhyde-superstar

Copy link
Copy Markdown
Contributor

Per instructions I think

@sbhyde-superstar

Copy link
Copy Markdown
Contributor Author

Initial submission for thinkScript per emails from PeterCJ. Note the first update of udl-list.json was from last week. The second is current and carries a date of Jul 19. I am unsure of how to exclude that from the commit

@sbhyde-superstar

Copy link
Copy Markdown
Contributor Author

trying again

@pryrt pryrt mentioned this pull request Jul 19, 2026
@pryrt

pryrt commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Two problems still:

  1. You didn't rename the UDL main file per the rules. As I said before, we don't allow just single-word names like UDLs\thinkScript.xml for the main UDL file. Please rename it (in your current patch-1 branch... do NOT create a new branch) to something like UDLs\thinkScript_by_sbhyde.xml or something.... and then update the JSON id-name string to match (like `"id-name": "thinkScript_by_sbhyde"). The other file names should be okay as-is
  2. the JSON needs to include the
    "functionList": "thinkScript",
    "sample": "thinkScript-Sample.ts",
    
    to let the system know where those files are and what you've called them.

Make sure you make both changes in your patch-1 branch, without creating a new branch.

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

pryrt added 2 commits July 20, 2026 10:40
also updated the sample file to include AI-generated function so FunctionList test will show something
@pryrt

pryrt commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

I forgot that functionList also required a functionList example output test file -- the CONTRIBUTING.md had instructions for how you could have generated it, but I thought it would be easier to make it for you.

I used AI to generate the script CalcMomentum { ... } function, and verified manually (and with automation) that it showed the script CalcMomentum in the functionList panel. (The purpose of the Sample file, when you have functionList definition, is to be able to verify that the functionList definition finds the function(s) it's supposed to.)

Please take a look at the updated sample file https://github.com/sbhyde-superstar/userDefinedLanguages/blob/9f6f35db3da4b2aebb8d08635a8a41f8f665a66f/UDL-samples/thinkScript_Sample.ts , to make sure that AI didn't do something invalid; let me know whether or not it looks reasonable.

If you agree it looks good, I will merge the PR.

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pryrt
pryrt merged commit ec884a7 into notepad-plus-plus:master Jul 20, 2026
2 checks passed
@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pryrt

pryrt commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

In one regard, it doesn't matter, in that you've got your private local copy, and then there's this copy here which is publically available, and what you have on your system doesn't matter compared to the public one.

On the other hand, if you think you might eventually want to submit an update to the public copy here, it would be easier for you to do that if all your filenames, internal IDs, etc, matched what's in the public one, so that if you do a new copy, it will just try to change the improvements you made, rather than trying to rename or use the wrong name or whatever....

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pryrt

pryrt commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

When do you expect a roll out?

Oh... I think you have misunderstood this User Defined Language Collection. This is a repository where users of Notepad++ can submit and/or download user-created UDL and associated files. These will never be distributed with Notepad++ directly -- there are hundreds of UDL here, and there isn't enough space in the Languages menu for that (IIRC, you can't have more than about 30 UDL installed, and that would be a huge number for any real user). (Also, anything that is distributed with Notepad++, the N++ developer would be assumed to maintain/support, and he doesn't have the bandwidth or interest in maintaining hundreds of UDL. In this repo, we are able to make it more explicit that the UDLs provided are user-created and user-supported. I am just here to facililate that.)

To sum up: interested users would have to come here, and follow the instructions in the README for how to download and use the UDL and associated files. (Or use my CollectionInterface plugin, which adds a plugin to easily download and install a UDL from this Collection.) Things here won't be included with Notepad++ natively.

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@sbhyde-superstar

sbhyde-superstar commented Jul 20, 2026 via email

Copy link
Copy Markdown
Contributor Author

@pryrt

pryrt commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Yes, it's been live in the repo since I did the merge commit an hour or two ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants