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

Keep unfolded areas unfolded after file reload on save? #9

Open
lapinvert opened this issue Nov 29, 2023 · 6 comments
Open

Keep unfolded areas unfolded after file reload on save? #9

lapinvert opened this issue Nov 29, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@lapinvert
Copy link

Not sure if this is even possible but some tools reload files after they are saved (for example, prettier), and when that occurs all the area suddenly fold again which is a disturbing DX. Any ways to improve it or workaround it?

@predragnikolic predragnikolic added the bug Something isn't working label Dec 12, 2023
@predragnikolic
Copy link
Owner

Hello,

Thanks for the report.

I created a new release that should improve inline folds when used with formatters.
Can you check if your issue is still there?

If it is still there, can you just do a quick recording so I can see exactly what you mean?

@lapinvert
Copy link
Author

lapinvert commented Dec 15, 2023

Thank you!
I uninstalled and re-installed inlineFold to be sure to be using the latest version and tried again, but no luck unfortunately.
Here is a screen record

demo.mov

__

@predragnikolic
Copy link
Owner

Hello,
Thanks for the video, it helps

What Sublime Text prettier plugin are you using?
Or you just invoke the prettier command via the terminal?

@lapinvert
Copy link
Author

@predragnikolic prettier doesn't work in my use case so I haven't tested with it. I use rustywind, its for formatting tailwindcss classes. I trigger it aftear each save.

@predragnikolic
Copy link
Owner

I will try to setup rustwind as soon as I find some time.

I do not know how to set up rustywind to run on save,
Could you tell me how you manged to set it up to run on save?

Do you just invoke the command from the terminal with rustywind .?

@lapinvert
Copy link
Author

Running rustywind --write <path_to_folder>/ on command line would produce the effect I showed you. All I do is run that command after every save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants