RunJS icon indicating copy to clipboard operation
RunJS copied to clipboard

[Request] Set snippet as new tab default

Open jackcannon opened this issue 1 year ago • 2 comments

Snippets are useful to an extent. I mostly find myself using them to add all the imports that I normally use. This can be a bit annoying when everytime I open a new tab, I need to manually add the snippet that I know I want added for in every tab that I use.

Therefore a setting in the settings titled something like "Populate new tabs with...", and a dropdown of "Nothing (default)" followed by all your saved snippets. Then when you open a new tab, it's already got the imports I need.

I am aware there is a 'Open Snippet in New Tab' option in the snippets window, but that's as cumbersome as adding the snippet manually.

jackcannon avatar Jan 23 '24 13:01 jackcannon

Thanks @jackcannon. Just want to check first that you're aware you can insert snippets via autocomplete? For example, if I had a snippet named xyz and I start typing that name, then I can insert it via the autocomplete suggestion:

Screenshot 2024-02-01 at 15 09 14

This should make it easy to add a snippet after you open a new tab.

lukehaas avatar Feb 01 '24 15:02 lukehaas

Hi, Yes, sorry, I didn't make it clear - that's what I do atm. But it's still extras steps when I know that I want all new tabs to open with the same thing.

  1. Open new tab
  2. Try to remember what the snippet is called
  3. Start typing the snippet name
  4. Select it from the several similarly named snippets
  5. Enter
  6. Back to thinking about what I want to do

vs

  1. Open new tab
  2. Done

jackcannon avatar Feb 01 '24 15:02 jackcannon