Skip to content

Folders Doc#105

Merged
dhruvisompura merged 14 commits intomainfrom
new-folder-flow-doc
Jul 3, 2025
Merged

Folders Doc#105
dhruvisompura merged 14 commits intomainfrom
new-folder-flow-doc

Conversation

@dhruvisompura
Copy link
Copy Markdown
Contributor

@dhruvisompura dhruvisompura commented Jul 1, 2025

Addresses posit-dev/positron#7563.

This doc covers how to use the "New Folder from template" dialog. We quickly cover why a user would want to use this feature, how to get to the dialog, and what the different configuration options are. The section tries to generically talk about Python and R templates (notebooks are covered by the python template section).

I have decided to forego screenshots in this document. I think we can link to the ui interface doc if folks need to see a screenshot of the menus that lead to the dialog (new menu and workspace switcher). I think we can avoid screenshots for the dialog entirely since its pretty self explanatory.

I have also tried to explicitly avoid the words workspace and project in this doc except for one or two exceptions - but we may want to remove those as well.

In regards to the workspace switcher - I think we can cover this topic in the ui interface doc being worked on here: #95

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 1, 2025

Deploy Preview for positron-posit-co ready!

Name Link
🔨 Latest commit f375bd5
🔍 Latest deploy log https://app.netlify.com/projects/positron-posit-co/deploys/68668d333c696300099d3432
😎 Deploy Preview https://deploy-preview-105--positron-posit-co.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dhruvisompura dhruvisompura changed the title Initial attempt at doc Folder Doc Jul 1, 2025
@dhruvisompura dhruvisompura changed the title Folder Doc Folders Doc Jul 1, 2025
@dhruvisompura dhruvisompura marked this pull request as ready for review July 1, 2025 20:37
@@ -0,0 +1,50 @@
---
title: "Folder Templates"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we like this title but I wanted to keep it generic for when we eventually add more templates (built-in or even user supported). Not in love with this title so I'm open to ideas.

The doc feels a little incomplete to me but I can't figure out what's missing...


The "New Folder from Template" feature helps you quickly setup a a folder with an environment using a predefined template for a language or framework.

To create a new folder from one of the available templates in Positron, select the "New" dropdown menu in the top-left or the workspace switcher in the top-right. Select the "New Folder from Template" option to bring up the dialog.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mention the workspace switcher here and we'll want to link out to the workspace switcher section in the ui interface doc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also include the command Workspaces: New Folder from Template... here as well?


## New folder from template

The "New Folder from Template" feature helps you quickly setup a a folder with an environment using a predefined template for a language or framework.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overview of why you would want to use the template feature feels a little light to me. Is there anything else worth mentioning here?

Copy link
Copy Markdown
Member

@sharon-wang sharon-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are your thoughts on focusing these docs on "why you may want to use this" and "what results the modal will yield", putting less emphasis/content around the modal steps/fields themselves?

My thinking around this: the contents of the modal may change, and in the further future, there may be extension-contributed templates that we may not explicitly document. The modal steps are hopefully self-explanatory enough when using the modal, and we have an opportunity in these docs to cover the unspoken "why" and "what to expect" parts that aren't currently included when using the modal.

Comment on lines +23 to +25
**How would you like to set up your Python environment?:**
- **Create a new virtual environment:** Recommended for most users. This option creates an isolated environment for your project, which helps avoid conflicts with other Python projects on your system.
- **Use an existing environment:** Choose this if you already have a Python environment you want to use.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'll need an empty line before the bullets to avoid this rendering issue here and a few more spots below where bulleted lists are used:

image
Suggested change
**How would you like to set up your Python environment?:**
- **Create a new virtual environment:** Recommended for most users. This option creates an isolated environment for your project, which helps avoid conflicts with other Python projects on your system.
- **Use an existing environment:** Choose this if you already have a Python environment you want to use.
**How would you like to set up your Python environment?:**
- **Create a new virtual environment:** Recommended for most users. This option creates an isolated environment for your project, which helps avoid conflicts with other Python projects on your system.
- **Use an existing environment:** Choose this if you already have a Python environment you want to use.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for catching that! I think I might revisit the format of this section generally


The "New Folder from Template" feature helps you quickly setup a a folder with an environment using a predefined template for a language or framework.

To create a new folder from one of the available templates in Positron, select the "New" dropdown menu in the top-left or the workspace switcher in the top-right. Select the "New Folder from Template" option to bring up the dialog.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also include the command Workspaces: New Folder from Template... here as well?


### Finish

Once you are satisfied with your configuration options, select **Create** to create your new folder with the applied settings. Positron creates the folder and applies your selected template and settings. Once setup is complete, you will be prompted open the folder in the current window or a new window to begin working.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we also note that Positron will start up the chosen interpreter automatically?

@dhruvisompura dhruvisompura requested a review from sharon-wang July 2, 2025 20:30
Copy link
Copy Markdown
Collaborator

@juliasilge juliasilge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Co-authored-by: Julia Silge <julia.silge@gmail.com>
Copy link
Copy Markdown
Member

@sharon-wang sharon-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for writing this up! :D

@dhruvisompura dhruvisompura merged commit c644860 into main Jul 3, 2025
5 checks passed
@dhruvisompura dhruvisompura deleted the new-folder-flow-doc branch July 3, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants