#103 new Service for Mode Option Panes in Editing Options Pane

open
nobody
None
7
2012-02-29
2006-11-28
Victor Engmark
No

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.

Discussion

1 2 > >> (Page 1 of 2)
  • Alan Ezust
    Alan Ezust
    2007-06-02

    Logged In: YES
    user_id=935841
    Originator: NO

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

     
  • Alan Ezust
    Alan Ezust
    2007-06-02

    • priority: 5 --> 7
     
  • Alan Ezust
    Alan Ezust
    2008-04-20

    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?

     
  • Alan Ezust
    Alan Ezust
    2008-04-20

    • assigned_to: nobody --> k_satoda
     
  • 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?

     
  • Alan Ezust
    Alan Ezust
    2011-11-16

    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.

     
  • Alan Ezust
    Alan Ezust
    2011-11-16

    • summary: Set encoding / line endings per mode --> new Service for Mode Option Panes in Editing Options Pane
     
  • Alan Ezust
    Alan Ezust
    2011-11-16

    • assigned_to: k_satoda --> shlomy
     
  • Evan Wright
    Evan Wright
    2011-11-17

    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.

     
  • Alan Ezust
    Alan Ezust
    2011-12-17

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

     
1 2 > >> (Page 1 of 2)