[ZeroBrane Studio] Re: a few ideas

  • From: Paul K <paul@xxxxxxxxxxxxx>
  • To: zerobrane@xxxxxxxxxxxxx
  • Date: Thu, 22 Aug 2019 22:25:43 -0700

Hi Ulrich,

Great, it works. :)

Good. BTW, if you do want to open image files from the IDE, you may
want to try this plugin:
https://github.com/pkulchenko/ZeroBranePackage/blob/master/openimagefile.lua

Paul.

On Thu, Aug 22, 2019 at 10:02 PM Ulrich Schmidt <u.sch.zw@xxxxxx> wrote:

Great, it works. :)
Thanks a lot.

Am 22.08.2019 um 20:34 schrieb Paul K:
Hi Ulrich,

Thank you for the feedback and the kind words!

In addition to "hide this file type" i would like to see a "dont open this 
type in zbe".

Do you still want to see those files in the tree, even though you
don't want to open them?

You may try adding the following to the config (update the table to
add extensions you want to ignore):

package {
   onFiletreeActivate = function(self, tree, event, item_id)
     local fname = tree:GetItemText(item_id)
     local ext = wx.wxFileName(fname):GetExt()
     if ({skip = true, myext = true})[ext] then return false end
   end,
}

Allways after opening a lua file in zbs i press F12 to fold the source. Is 
it possible to configure a "default folding level at file open" ?

Try adding the following to the config (or turn it into a real package):

package { onEditorLoad = function(self, editor) editor:FoldSome() end }

Paul.



Other related posts: