I'm working on several file types, which have to be saved with different encodings / line endings for the resulting files to work. I'd like to be able to set these in the "Editing" part of the configuration, so that I don't have to change it manually for max 50% of the files I open.
Logged In: YES
user_id=935841
Originator: NO
Wow, I was sure this was already possible but I see they are indeed missing!
Logged In: YES
user_id=935841
Originator: NO
kazutoshi, how easy/difficult do you think it would be to allow users to set default line endings and encodings on a mode basis?
It seems that the code that uses the encodings and line separators (I guess this is what you mean by "line endings") already supports mode-specific values for them, it's just not reflected in the user interface (Global Options dialog) for some reason.
A user interface for specifying mode-specific values for these settings is one thing; moving these settings from their current option panes (General and Encodings) to Editing is another. The lack of a "mode" combo-box in the option panes of these settings does not mean that these settings should move to another option pane; the current option panes can be enhanced to provide mode-specific settings.
So, what do you think should be done?
I think jEdit should be enhanced to provide mode-specific options, and plugins should be able to offer mode options panes also. Some of the code from SideKick (AbstractModeOptionPane) can be reused here.
I opened a related ticket 1847089 which I think is a duplicate of this.
Maybe this is already what you meant, but: Abbreviations, Docking, Editing are already mode-specific options, and now Encodings is also desired. Why not Syntax Highlighting (this was already voted down, but I like it), Tool Bar (so that mode-specific icons follow the global ones on the tool bar), and possibly Shortcuts (this might be a lot of work)?
Maybe it would be better to split all the settings into mode-specific and non-mode-specific, and factor the mode combo box out so that it doesn't appear on each pane.
+1 to what evanpw said on 2011-11-17 10:33:37
"Maybe it would be better to split all the settings into mode-specific and
non-mode-specific, and factor the mode combo box out so that it doesn't
appear on each pane."