Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Wrap Paragraph to Column action constrain wrapping to selected lines #59

Closed
wants to merge 3 commits into from

Conversation

mikke89
Copy link

@mikke89 mikke89 commented Feb 18, 2024

Hi, and thanks for this plugin. I made some changes, mostly to make the plugin work better for my own use cases.

  • Fix applying plaintext filetypes option
  • Make Wrap Paragraph to Column action constrain wrapping to selected lines

I've also made some changes to the gradle build file to make it all compile for me.

@abrookins
Copy link
Owner

Oh my gosh, I totally missed your PR, @mikke89! Thanks so much for opening. I saw it tonight after finally getting tired of exactly the behavior you fixed and similarly fiddling with the gradle file. A lot. 😂

I ended up refactoring a few things in the plugin code to drop some deprecated usages that were throwing warnings. I'll compare your implementation with where I landed and see how they combine!

@@ -52,6 +52,7 @@ public void apply() {

Objects.requireNonNull(settingsProvider.getState()).setColumnWidthOverride(columnWidth);
settingsProvider.getState().setUseMinimumRaggednessAlgorithm(useMinimumRaggednessAlgorithmCheckBox.isSelected());
settingsProvider.getState().setPlaintextFileTypes(plaintextFileTypesField.getText());
Copy link
Owner

Choose a reason for hiding this comment

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

Nice catch!

@mikke89
Copy link
Author

mikke89 commented Apr 25, 2024

No worries, please feel free to do whatever you wish with this PR. I'm just happy to see this extension continue to get support, it's really a must-have tool! :)

@abrookins
Copy link
Owner

Closing because I integrated this change into #60. Thanks again!

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