[SOLVED] how does 'Project Explorer' -> 'external editor' work ?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] how does 'Project Explorer' -> 'external editor' work ?

    Please , I have set :
    Options -> Windows -> Project Explorer -> 'external editor'
    in the SEGGER Embedded Studio,
    to the name of my favorite editor ( emacs / emacsclient on Linux ),
    but how to get the Project Editor / Source browser to use it ?
    I can find no 'open with external editor' option anywhere -
    is there one ? Is it possible to open files in Emacs quickly
    from the IDE somehow ?
    If someone could please point me in the right direction, on this,
    I'd much appreciate it - all the manual / reference says is :
    "External Editor The file name of the application to use as the external Environment/Project Explorer/External text editor Editor – FileName" -
    OK, I add the full path of the external editor here, but I can see how to get
    it invoked to edit a file.
    Can anyone enlighten me ?
    Sorry for this newbie SES user question, but it would
    help alot if the documentation was a bit more complete on this option.
    Thanks & Best Regards,
    Jason
  • Hello Jason,

    Thank you for your inquiry.
    It seems that this feature is not documented properly yet, thank you for pointing that out.
    To use that feature you set your favorite editor as you wrote and to use it keep Shift pressed while double clicking a source file in the project explorer.
    Then the file should open in the external editor.

    The documentation will be improved accordingly.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Aha, fantastic! Thanks Nino .
    Now if I set the Windows -> Project Explorer -> external editor
    to '/usr/bin/emacsclient', shift+<double-click> DOES open in my
    running emacs.

    Note for future versions:
    It would be nice to be able to pass emacsclient / the external editor
    some command line arguments - you seem to support only a program name ,
    not a program name + command line arguments ?
  • Hello,

    Great to hear that you are up and running again.


    jvd66 wrote:

    It would be nice to be able to pass emacsclient / the external editor
    some command line arguments - you seem to support only a program name ,
    not a program name + command line arguments ?
    Currently no CL support is planned, we will put it on the wishlist for future discussions.

    This thread will be closed now.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.