EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     snippets indentation bug and question
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
dreftymac
Posted on: 11/12/2009 1:13 pm
Not too shy to talk
Joined: 10/1/2008
From:
Posts: 39
snippets indentation bug and question
Yutaka,

Thanks for your work on Emeditor 9. It looks like you have done a lot!

Question: Is there a way to get the snippets plugin to work *without* having the snippets plugin side-pane open? Currently it seems like I cannot get snippets to trigger on a file unless I have the side panel open.

Bug: There appears to be a bug in the handling of indentation for snippets. For example, if I use the following snippet:

Quote:

- firstname:${1:_blank_}
lastname: $2
body: |
$3


... and then trigger the snippet for insertion into the document, the typed-in value for "firstname" gets entered in correctly, but then the indentation of the following lines of the snippet gets changed. The lines are no longer indented with the same number of spaces anymore.

-----------------------------------------------------
NOTE: the exact text of the code is available below encoded in base64. This is offered so you can view the exact code unmodified by this forum software:

ICAtIGZpcnN0bmFtZTokezE6X2JsYW5rX30KICAgIGxhc3RuYW1lOiAkMgogICAgYm9keTogfCAKICAgICAgICAkMw==
Yutaka
Posted on: 11/12/2009 2:33 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: snippets indentation bug and question
Quote:

dreftymac wrote:
Yutaka,

Thanks for your work on Emeditor 9. It looks like you have done a lot!

Question: Is there a way to get the snippets plugin to work *without* having the snippets plugin side-pane open? Currently it seems like I cannot get snippets to trigger on a file unless I have the side panel open.

Bug: There appears to be a bug in the handling of indentation for snippets. For example, if I use the following snippet:

Quote:

- firstname:${1:_blank_}
lastname: $2
body: |
$3


... and then trigger the snippet for insertion into the document, the typed-in value for "firstname" gets entered in correctly, but then the indentation of the following lines of the snippet gets changed. The lines are no longer indented with the same number of spaces anymore.

-----------------------------------------------------
NOTE: the exact text of the code is available below encoded in base64. This is offered so you can view the exact code unmodified by this forum software:

ICAtIGZpcnN0bmFtZTokezE6X2JsYW5rX30KICAgIGxhc3RuYW1lOiAkMgogICAgYm9keTogfCAKICAgICAgICAkMw==


Some indentation bugs were fixed in v9.0x. Did you try the latest version 9.04?


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

dreftymac
Posted on: 11/12/2009 5:36 pm
Not too shy to talk
Joined: 10/1/2008
From:
Posts: 39
Re: snippets indentation bug and question
The bugs do seem to be fixed in the latest version. Thanks.

Is there a way to get snippets triggers to work without the snippets sidebar open?
Yutaka
Posted on: 11/13/2009 10:11 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2406
Re: snippets indentation bug and question
Quote:

dreftymac wrote:
The bugs do seem to be fixed in the latest version. Thanks.

Is there a way to get snippets triggers to work without the snippets sidebar open?


Yes. You can check "Run Background" in the Snippets Properties.


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文