#238 EditorConfig: support for editing files over remote VFS

open
Hong Xu
None
5
2013-04-28
2011-06-24
Mikhail Serov
No

I work with many remote servers which often have files in different encodings so it's not enough just one global default encoding in this case.
It would be nice to have a possibility to define default encodings for particular severs.
(see also http://community.jedit.org/?q=node/view/4766\)

Discussion

  • Alan Ezust
    Alan Ezust
    2011-06-25

    Perhaps "path regex" makes more sense than "server" since server only means something when you are using the FTP plugin.
    A mapping of path regexes to encodings would be quite convenient.
    Perhaps that should also include line separator character.

     
  • Alan Ezust
    Alan Ezust
    2011-06-25

    • summary: Default character encoding per server --> Default character encoding per path regex
     
  • Mikhail Serov
    Mikhail Serov
    2011-06-25

    ezust, you're right, particularly about line separator (I forgot about it).

    From other hand, different charsets are rare when on the same machine. It is much more hot for remote servers, so I would put "path/server" in the topic.

     
  • Mikhail Serov
    Mikhail Serov
    2011-06-25

    • summary: Default character encoding per path regex --> Default character encoding per path/server regex
     
  • Mikhail Serov
    Mikhail Serov
    2013-04-05

    > From the file system browser, you can right click a folder and go to
    encoding, and select the default encoding for opening files under that
    location. How different is that from what you are asking?

    Hmm.. Didn't know about this opportunity.
    Though, encoding chosen for a particular folder resets every time default encoding is changed.
    Encoding settings are not portable between installations as well.
    Considering aforementioned, I think those settings should be saved somewhere explicitly.

     
  • Alan Ezust
    Alan Ezust
    2013-04-23

    I am not sure if this works on remote file systems, but the EditorConfig plugin allows you to specify an encoding of all files in a directory, via a .ini file

     
  • Alan Ezust
    Alan Ezust
    2013-04-24

    Moving to Plugin Feature Requests.
    This can be done in a plugin. EditorConfig handles 5 standard encodings while jEdit can handle many others.

     
  • Alan Ezust
    Alan Ezust
    2013-04-26

    • summary: Default character encoding per path/server regex --> EditorConfig: set character encoding per path/server regex
     
  • Alan Ezust
    Alan Ezust
    2013-04-26

    Git master of EditorConfig plugin now supports jedit_encoding which means half of this feature request is
    satisfied by EditorConfig.
    How to handle Remote VFS is a problem that is under discussion still. Currently, EditorConfig loads its .editorconfig files with java.io.file instead of the more generic VFS API.
    If EditorConfig could load remote .editorconfig files like jEdit does, this would solve the problem.

     
  • Alan Ezust
    Alan Ezust
    2013-04-26

    • assigned_to: nobody --> xuhdev
     
  • Hong Xu
    Hong Xu
    2013-04-26

    Correct @ezust a detail:

    jedit_charset not jedit_encoding

     
  • Alan Ezust
    Alan Ezust
    2013-04-28

    • summary: EditorConfig: set character encoding per path/server regex --> EditorConfig: support for editing files over remote VFS