[ZeroBrane Studio] Re: a few ideas

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

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.

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

Hi all.

It is really hard to find something to improve - ZBS seems to be close
to perfect. :)

Two tiny things i want to ask:

- In the project tree window we can hide some file types. all visible
files will be opened in the zbs editor by double clicking. for some file
types this make no sense (eG. .png). In addition to "hide this file
type" i would like to see a "dont open this type in zbe".

- 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" ?

TIA
Ulrich.


Other related posts: