Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Copy Prompt" icons on files #206

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

"Copy Prompt" icons on files #206

wants to merge 19 commits into from

Conversation

andrewpareles
Copy link
Contributor

@andrewpareles andrewpareles commented Jan 7, 2025

We'd like to add icons in the sidebar that let you quickly copy file and folder contents to the clipboard.

For files:

  • Add an icon that, when clicked, copies a file's name and content to the clipboard. For example, clicking the button on tsconfig.json would copy this:
tsconfig.json:
```json
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
	"types": [],
	"plugins": []
},
```

For folders:

  • Icon to copy hierarchy. For example, copying folder1 would give this hierarchy:
folder1
   - file1.json
   - file2.ts
   - folder2
      - file3.ts
  • Icon to copy hierarchy and all files together, concatenated.
[[hierarchy]]
[[file1]]
[[file2]]
...

@andrewpareles andrewpareles changed the title Copy icons "Copy Prompt" icons on files Jan 9, 2025
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.

2 participants