lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Jeff,

Thank you for the feedback.

> I have just downloaded your lastest version, I could get the CTRL-T to show
> variables in the tooltip as I was debugging, but I couldnt get the click
> method you mentioned to do the same thing. Maybe I am doing something stupid
> , is it single left click, right click ?  Hovering over the variable would
> be really nice, but thats probably the hardest to implement ?

I think you did everything right, but I probably wasn't clear about
what I meant by clicking. It was only meant to indicate that the
variable displayed depends on the cursor position on the variable, so
for "abc.def", if the cursor is on "def", the IDE will show you the
value of "abc.def" and if it's on "abc", it will only show the value
of "abc" (which will be a pretty printed value of that table). In all
cases you use Ctrl-T to activate it.

I played a bit with mouse over, but it was getting in a way during
debugging and also required mouse movement, while the current method
only requires keyboard. You can argue either way, but my brief tests
showed this method to be a bit more convenient. Also, the current
method works with any arbitrary expression you can select, where as
mouse over wouldn't (as you can select text for various purposes).

> 1) Would be nice to dock the floating Stack and Watch Windows into the lower
> pane. Maybe I have been using MS Visual Studio for too long :)

That would be nice, but unfortunately I can't get one tab to float,
only a window (like the Project Tree one), but it was too large and
the screen was getting to crowded, so I opted for just floating
windows, but not dockable. Another reason was the menu in the Watch
window, which was not possible for dockable windows, but I think it
will be reorganized. I'll see if there is a way to make them dockable,
but you probably won't be able to add them as a tab to the lower pane,
only as a separate pane (similar to the project tree).

> 2) I have been using Scite for a fair time so switching over to new key
> sequences would prove painful. I have CTRL-Q ingrained now for comment
> toggle not CTRL-U. Could you add a feature to externalise the key mappings
> so you could edit a file to change the mappings ?

It used to be Ctrl-Q until recently, but as I started to prepare for
MacOS version, it turned out that interferes with Command-Q on MacOS
(mapped from Ctrl-Q), which is used to close the application. I did a
bit of re-organization in preparation for MacOS port and this was one
of the changes.

> 3) Scite has a nice feature that allows you to define your own API
> intellisense. You type in your first few letters and hit CTRL-SPACE and it
> brings up a drop down menu of all your matching functions. Also you then
> type the opening bracket of your function and it shows you the parameters of
> that function. I havent tried your Love2d intellisense system but I am
> guessing it gives almost the same functionality as I have just described. So
> maybe it is already possible to create a user specific system by editing a
> config file ?  If not, it would be really nice to make that a more generic
> system than just for Love2d.

Yes, ZBS supports the same mechanism. In fact, love2d api is all
described in api/lua/love2d.lua file. You will find 15 or so API files
in that folder:
https://github.com/pkulchenko/ZeroBraneStudio/tree/master/api/lua. You
can specify what APIs you want to have activated in the current
interpreter by providing "api" table for the app (this is from
interpreters/luadeb.lua:

  api = {"wxwidgets","baselib"},

you can list as many as you need to be handled.

> 4) To add a variable into the watch window, I kept highlighting and right
> clicking on the variable and expecting to see an option to add it to the
> watch window. That would be really handy feature to add.

This is on the todo list.

> 5) Code snippets is a nice feature to add, I use it a lot in Scite

I added it to the list.

Paul.

On Sun, Jul 1, 2012 at 2:41 PM, Jeff Smith <spammealot1@live.co.uk> wrote:
>
> Hello Paul
>
> Firstly, I just wanted to say thanks for developing ZeroBrane Studio, it's
> already a great tool, very impressive piece of work !
>
> The static code analysis tool is very neat, I have been using strict.lua
> recently to clean up my code but it was a little frustrating as it only
> finds errors at runtime and you have to explore all code paths to spot every
> mistake. A static analysis tool is a much better solution for me.
>
> I have just downloaded your lastest version, I could get the CTRL-T to show
> variables in the tooltip as I was debugging, but I couldnt get the click
> method you mentioned to do the same thing. Maybe I am doing something stupid
> , is it single left click, right click ?  Hovering over the variable would
> be really nice, but thats probably the hardest to implement ?
>
> A few other things that crossed my mind as I was having an initial play with
> ZB Studio. They are all pretty obvious stuff, but I will mention them
> anyways
>
> 1) Would be nice to dock the floating Stack and Watch Windows into the lower
> pane. Maybe I have been using MS Visual Studio for too long :)
>
> 2) I have been using Scite for a fair time so switching over to new key
> sequences would prove painful. I have CTRL-Q ingrained now for comment
> toggle not CTRL-U. Could you add a feature to externalise the key mappings
> so you could edit a file to change the mappings ?
>
> 3) Scite has a nice feature that allows you to define your own API
> intellisense. You type in your first few letters and hit CTRL-SPACE and it
> brings up a drop down menu of all your matching functions. Also you then
> type the opening bracket of your function and it shows you the parameters of
> that function. I havent tried your Love2d intellisense system but I am
> guessing it gives almost the same functionality as I have just described. So
> maybe it is already possible to create a user specific system by editing a
> config file ?  If not, it would be really nice to make that a more generic
> system than just for Love2d.
>
> 4) To add a variable into the watch window, I kept highlighting and right
> clicking on the variable and expecting to see an option to add it to the
> watch window. That would be really handy feature to add.
>
> 5) Code snippets is a nice feature to add, I use it a lot in Scite
>
> You know the sort of thing
>
> add the following to a snippets config file
>
> fi=for i,v in ipairs(|) do\n\
>     print(k, v)\n\
> end
>
> Then I just type  "fi" CTRL-B and it pastes the above code and sets the
> cursor position inside the pairs brackets
>
>
> Apologies for suggesting lots more work for you :)
>
>
> Regards Jeff