How to set options for the current file?
-
I have been using TextPad for years and now I would like to start using NPP.
NPP is very flexible and configurable but there is one thing I can’t do.
TextPad has the ability to change various settings of the current file ‘on the fly’, without having to change the general settings, with the ‘Document Properties’ command.
Is it possible to do something similar with NPP?
At least for some settings such as tab spacing, use of tabs or spaces, screen or print font.Thanks for any suggestion!
-
Sorry, no reasonable way to make it do what you’re asking.
tab spacing, use of tabs or spaces
But I do agree that it might be nice to override these things for a single file, occasionally.
-
@Alan-Kilborn said in How to set options for the current file?:
But I do agree that it might be nice to override these things for a single file, occasionally.
Just speculating… if some glutton for punishment were to try to implement this concept in a plugin, which would make more sense to you?
-
Have a set of features (word wrap, tabs/spaces, etc.) each of which could be enabled for per-tab memory? Enabled settings would be remembered separately for each tab, and some method would have to be devised for establishing default settings for new tabs (since changing a setting would only affect the current tab, and there is always a current tab).
-
Have an “isolate tab” property which, when turned on for a specific tab, would cause any changes in any of the settings the plugin manages to be kept independently for that tab (neither changing nor being affected by the global settings), leaving other tabs (that are not marked isolated) to behave as they do now.
-
Something else (like file-name-based memory).
-
-
Actually, I think any of those ideas could be made to work well.