boltex / leojs

Leo Literate Editor with Outline in Typescript
MIT License
23 stars 0 forks source link

Offer option to have the log pane be a tab in find panel, instead of an output pane. #124

Open edreamleo opened 2 months ago

edreamleo commented 2 months ago

Regardless of vs-code's debug.internalConsoleOptions setting, LeoJS shows the Console on startup.

This is a minor irritation, but I would like to see it fixed.

Update:

As a workaround, I added a shortcut (Alt-Ctrl-Y) for "View: Previous Panel". This allows me to open the Leo Log with:

Ctrl-Shift-Y (Toggle Debug Console) followed by Alt-Shift-Y.

boltex commented 2 months ago

@edreamleo Thanks for this report.

I know Leojs (and leointeg) try to show their log pane when starting up. Is that what you are referring to? (perhaps I should reconsider that behavior given there are now many ways to execute the 'show Log Pane' command)

...or is it the specific 'Console' as shown in this screenshot? : https://code.visualstudio.com/docs/editor/debugging

...or the generic 'Output pane' region as a whole, shown here labeled as 'D' in this screenshot? : https://code.visualstudio.com/docs/getstarted/userinterface

Note: In windows you can easily 'Drag' a rectangle on screen to capture a screenshot with the Shift+Windows Key+S in case you want to capture a region of your screen and paste it directly in this thread.

edreamleo commented 2 months ago

@boltex

Doh. I see that "generic" output region shows the Leo log, so there is good reason for LeoJS's existing behavior.

To answer your question: I was referring to the generic 'Output pane' region as a whole, that is, the region that Shift-Control-Y affects. On startup, that region shows Leo's log. The first Shift-Control-Y changes the focus to the (empty) 'Debug Console'. The second Shift-Control-Y closes the entire region.

Summary

Imo, this is a minor issue. It can easily wait until LeoJS 1.0.1 :-)

If possible, I would prefer hiding the entire region on startup. A toggle-leo-log command could show/hide the generic 'Output pane' region, showing Leo's log when making the region visible.

edreamleo commented 2 months ago

@boltex Alternatively, perhaps the Leo console could be moved to left-hand area, the area that contains 'Outline', 'Timeline', etc.

Again, this can wait until well after LeoJS 1.0.

boltex commented 1 month ago

@edreamleo Having the leo log pane on the left instead of below as an output pane is a great idea! I'll make it switchable with an options setting. (i changed the title of this issue to match this idea)

boltex commented 1 week ago

@edreamleo I forgot to mention the often used and well-known CTRL+J shortcut by VSCode users that toggles (open/close) the whole bottom panel itself.