support icon indicating copy to clipboard operation
support copied to clipboard

[Feature] Quickstart for Pybricks Code

Open laurensvalk opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. Faced with an empty screen, it can be tricky to find where to start:

image

Describe the solution you'd like

Maybe these quickstart options:

  • Open existing project (opens the file browser)
  • Open a new project (opens the file browser and equivalent to clicking +)

As a layout suggestion, maybe placement could be similar to VS Code (but clickable, no shortkeys needed).

image

laurensvalk avatar Oct 23 '23 15:10 laurensvalk

This should avoid confusion like https://github.com/orgs/pybricks/discussions/1275 where users may try to paste code into the terminal instead.

laurensvalk avatar Oct 31 '23 13:10 laurensvalk

There are several options and pro-cons.

  1. Option 1: No new UI

    • file pane open by default
    • if empty: Create a file to begin
  2. Option 2: All of option 1 and show the welcome tour if Pybricks is opened without any files.

    • file pane open by default
    • if empty: Create a file to begin
    • welcome tour
  3. Option 3: new UI buttons on welcome screen

    • "Create new file" button
    • "Show files" or "Hide files" button con: The problem with option 3 is that it essentially duplicates two buttons, which is not ideal in any UI
  4. Create new file + Recent file list

    • "Create new file" button
    • recent files 1..3 buttons {74238521-277B-414B-926B-F81A58D53283}

I would love a more sophisticated UI that helps accessing the recent items. What do you think, which direction would you decide? @laurensvalk , @dlech ?

afarago avatar Oct 14 '24 14:10 afarago

Quick access to recent files is certainly convenient, but it seems like that belongs on the files tab?

Currently they're alphabetically sorted, but we can have a UI icon there to toggle sorting between recently changed and alphabetic.

The home screen is only visible when all files are closed. It would be useful if you could access recent files any time.

laurensvalk avatar Oct 14 '24 15:10 laurensvalk

Quick access to recent files is certainly convenient, but it seems like that belongs on the files tab?

Currently they're alphabetically sorted, but we can have a UI icon there to toggle sorting between recently changed and alphabetic.

The home screen is only visible when all files are closed. It would be useful if you could access recent files any time.

I am probably out or order here, but the sort alphabetic would be better for me if it was case insensitive. But switch between alpha and recent would help my memory also a lot.

BertLindeman avatar Oct 14 '24 15:10 BertLindeman