Skip to content

Modernize repo and make sure it works with ST4#9

Open
Frizlab wants to merge 183 commits intoSublimeText:masterfrom
Frizlab:develop
Open

Modernize repo and make sure it works with ST4#9
Frizlab wants to merge 183 commits intoSublimeText:masterfrom
Frizlab:develop

Conversation

@Frizlab
Copy link

@Frizlab Frizlab commented Jan 23, 2026

That being said:

  • I have no idea if it works before ST4 now It does not work before ST4;
  • I have not succeeded in running the tests (UnitTesting shows a panel at the bottom, but it is desperately empty; I suspect a syntax error, or something of that nature, but I don’t know for sure and am not sure how to debug…) -> Fixed;
  • I have removed the support for vim modelines. There is a dedicated plugin for that if needed; let’s not mix everything up! -> I actually enhanced the support for it, as well as added Emacs modelines;
  • I migrated the EoL from dos to unix;
  • I removed things that I thought were useless; I hope they actually were!

@Frizlab Frizlab marked this pull request as ready for review March 11, 2026 10:40
@Frizlab
Copy link
Author

Frizlab commented Mar 11, 2026

There are probably more tests we could do, but I declare the PR ready for review! \o/
(At least, if somebody wants to add tests one day, the proper infrastructure is here to do it easily.)

@Frizlab
Copy link
Author

Frizlab commented Mar 11, 2026

Oh. I forgot the Readme 😅

Copy link

@michaelblyons michaelblyons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like good work! I have a couple metadata comments and a little bike-shedding.

class ModelineInstruction(ABC):

class ValueModifier(str, Enum):
NONE = ""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about SET instead of NONE here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think NONE makes more sense because it’s a modifier. Ultimately the action will always be to set the value.

@Frizlab Frizlab requested a review from michaelblyons March 11, 2026 20:28
@Frizlab
Copy link
Author

Frizlab commented Mar 11, 2026

Done!

Not sure it’s actually better to create the parser from the format enum, mostly because 1. I have to forward-declare Settings and 2. it’s very specific code.
I’m fine with it like that anyways.

Copy link

@michaelblyons michaelblyons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it.

@michaelblyons
Copy link

Now waiting on sublimehq/package_control_channel#9333.

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.

Add to Package Control

4 participants