PreviousNextTracker indexSee it online !

(36/212) 103 - new Service for Mode Option Panes in Editing Options Pane

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.

Submitted engmark - 2006-11-28 16:55:20 Assigned
Priority 7 Labels
Status open Group None
Resolution None

Comments

2007-06-02 21:49:31
ezust

- **priority**: 5 --> 7

2007-06-02 21:49:31
ezust

Logged In: YES
user_id=935841
Originator: NO

Wow, I was sure this was already possible but I see they are indeed missing\!

2008-04-20 21:05:25
ezust

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?


2008-04-20 21:05:26
ezust

- **assigned_to**: nobody --> k_satoda

2009-02-07 21:12:34
*anonymous

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?

2011-11-16 20:10:00
ezust

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.

2011-11-16 20:10:00
ezust

- **summary**: Set encoding / line endings per mode --> new Service for Mode Option Panes in Editing Options Pane

2011-11-16 20:10:44
ezust

- **assigned_to**: k_satoda --> shlomy

2011-11-17 18:33:37
evanpw

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.

2011-12-17 19:38:51
ezust

+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."

2012-02-29 20:45:37
*anonymous

- **assigned_to**: shlomy --> nobody