-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Feature Request: autowrap per filetype #149
Comments
I wanted to asked this too but I settled down on a more modest proposal: #142 The fact that a soft-wrapping document could be silently being hard-wrapped should be fixed. The wrap column is common to both kind of wrapping so it's difficult to spot this is happening. |
It's kinda weird that this doesn't work OOTB. Is there some special VSCode API for detecting filetype-specific settings? |
Just attempted to:
and it didn't work. I didn't even realize you couldn't specify settings like that per file-type. It would be wonderful if Rewrap could do this and save me a manual toggle each time. Thanks! |
The next release will have the change many of you have been waiting for: Additionally, the To help you keep track of when autowrap is on or off, there's a now a small (optional, but on by default) icon/notification in the right of the statusbar. This is controlled by the 'icon' (default)This shows a small icon in the bottom right for the autowrap status of the current document. It actually has 4 states:
The icon's tooltip also gives some more information (will help with confusion like in #214) Naturally not everyone wants an extra icon in their statusbar, so they can either hide it, or use the 'text'There's also a 'text' notification option. This works almost the same as in the current version: it shows "Auto-wrap: on/off" for a few seconds when it's toggled on/off. But it now shows only when toggled. So if you never use that toggle command, you'll never see anything. (Fixes #144) The beta version is available to download. Feedback is welcome! I also haven't forgotten about a "full" auto-wrap setting (#65); it's still on my todo list. |
Awesome Steve. Thanks for the hard work.
… On Aug 20, 2020, at 8:42 AM, Steve Baker ***@***.***> wrote:
The next release will have the change many of you have been waiting for: rewrap.autoWrap.enabled can now be set per language.
Additionally, the rewrap.toggleAutoWrap command is still present, and can be used if you want to temporarily turn it on/off, but this is now a separate "per-document override" instead.
To help you keep track of when autowrap is on or off, there's a now a small (optional, but on by default) icon/notification in the right of the statusbar. This is controlled by the rewrap.autoWrap.notification setting, which currently has two options: 'icon' | 'text'.
'icon' (default)
This shows a small icon in the bottom right for the autowrap status of the current document. It actually has 4 states:
<https://user-images.githubusercontent.com/6125444/90771124-1bd38a00-e2f3-11ea-87bb-c625329b27b9.png> (normal): on, enabled in settings
<https://user-images.githubusercontent.com/6125444/90771558-c2b82600-e2f3-11ea-9a97-324a7960d978.png> (hidden): off, disabled in settings
<https://user-images.githubusercontent.com/6125444/90771573-c9469d80-e2f3-11ea-8b6e-e60c88dbe88f.png> (orange): temporarily enabled, from toggle command
<https://user-images.githubusercontent.com/6125444/90771602-d3689c00-e2f3-11ea-8e3b-5ae98bd6ba04.png> (gray): temporarily disabled, from toggle command
The icon's tooltip also gives some more information (will help with confusion like in #214 <#214>)
Naturally not everyone wants an extra icon in their statusbar, so they can either hide <https://code.visualstudio.com/updates/v1_36#_hide-individual-status-bar-items> it, or use the text option instead.
'text'
There's also a 'text' notification option. This works almost the same as in the current version: it shows "Auto-wrap: on/off" for a few seconds when it's toggled on/off. But it now shows only when toggled. So if you never use that toggle command, you'll never see anything. (Fixes #144 <#144>)
The beta version is available to download <https://github.com/stkb/Rewrap/releases/tag/beta>. Feedback is welcome!
I also haven't forgotten about a "full" auto-wrap setting (#65 <#65>); it's still on my todo list.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#149 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABUPF7DNM5ATCOJIRG6AV5TSBUY4TANCNFSM4HV6P45A>.
|
Could I ask whether the release referenced above was released? I don't see those options available. Thank you for the excellent extension! |
@max-sixty no it never got released. Coincidentally I've just started working on it again this week and it will be released in the next day or two. If you can't wait then you can still download & install the beta version above |
v1.14.0 is now released! so closing |
Allow the
rewrap.autowrap.enabled
setting to be specified on a per filetype basis.I'd love to be able to turn it off, for example, for some filetypes, but otherwise leave it on globally.
The text was updated successfully, but these errors were encountered: