GithubHelp home page GithubHelp logo

scratchpads's People

Contributors

buenon avatar nobodyme avatar omeryagmurlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

scratchpads's Issues

Open scratchpad in new tab

I'd like it if the new scratchpad I'm opening opens in a new tab to the side when I'm holding the SHIFT button when pressing Enter.

This would be the same behavior when opening (recent) windows. Holding shift when you click, opens in a new window.

Scratchpads are always .txt

When creating a new Scratchpad (selecting text, pressing F1, writing "Open Scratchpad", and pressing Return) there's no prompt asking for a format. I have a new file created in ".vscode/extensions/awesomektvn.scratchpad-0.1.0/" and called "scratchpad.txt"

Reopen closed scratchpad

current behaviour

When closing a scratchpad, there is no way to reopen it.

expected behaviour

As long as scratchpads are not removed, one should be able to reopen them.

Rename scratchpads

This is not an issue, but a feature wish.

It would be nice if you could rename the Scratchpads to make it easier to find them later. Especially if you have many Scratchpads, that would be very helpful.

Otherwise a great plugin. Thumbs up!

Improve file name prompt behaviour

It's a bit confusing that "Enter" and "Escape" do the same exact thing when the input is blank, and there's no hint that you can get an autogenerated name (for a moment, I thought the auto-incremental names were gone for good).

I think it'd be more intuitive if:

  • Blank input displays a greyed out hint like "(auto)"
  • "Enter" creates a scratchpad (no changes)
  • "Cancel" aborts the whole process

Ability to skip file name prompt

Can we have a setting to skip the feature altogether and revert to pre 0.0.8 behaviour?

"scratchpads.promptForFilename": false

The "New Scratchpad" search bar should sort filtered results by extension, then file type.

This is a minor feature request that, IMHO, would improve developer experience. Here are steps to reproduce:

  1. Open the "New Scratchpad" search bar
  2. Type txt

Expected: the first result should be Text (.txt)
Actual: the first result is TEXI (.texi)

Screenshot:

image

Workaround:

  • Typing .txt instead of txt filters as expected.
  • Alternatively, you can select from the filtered list.

Considering the workarounds, these are minor inconveniences, but it adds up throughout the day. And for me at least, this is unexpected behavior.

Typescript scratchpads share the same namespace

Summary

All open typescript scratchpad's share the same namespace. This means they can read each other's variables. Defining x in two typescript scratchpads results in an error because it's already defined in the other scratchpad. I would like each typescript scratchpad to have its own namespace. Or, in other words, I think each scratchpad should run in its own sandbox.

I don't think scratchpads worked this way in the past so I'm assuming this is a bug? If it is intentional behavior, I'm happy to provide reasons for my feature request.

Steps to reproduce

  1. Create a new Typescript scratchpad
  2. Write const x = 1; as its content.
  3. Create another new Typescript scratchpad
  4. Write const x = 1; as its content.

Expected: Both scratchpad's exist without error
Actual: Both scratchpad's error:

Cannot redeclare block-scoped variable 'x'. ts(2451)
scratch34.ts(1, 7): 'x' was also declared here.

Note: Closing one of the two scratchpad's (or both) fixes the problem.

Ephemeral scratches that are not saved to disk

I just noticed that every time i write some temporary code in a scratch, they are saved to disk. This causes my Settings Sync extension to write these scratches to the web. Could there be a setting to never save the scratches to disk?

Cheers!

Use builtin file types

The extension currently maintains its own file types. It'd be nice if it could just reuse the file types that are already configured in the editor. The drop-down list could then look (be?) the same as Change Language Mode command.

Change Language Mode

(I've no idea if extension API allows it or not.)

Extension creates 7 XML scratchpads upon install

I presume it's a leftover from some tests:

    Directorio: C:\Users\alvaro\.vscode\extensions\buenon.scratchpads-0.0.3\scratchpads\afec1e30600b4ee898f7bf225c38ba44


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       15/07/2018     10:51              0 scratch.xml
-a----       15/07/2018     10:51              0 scratch1.xml
-a----       15/07/2018     10:51              0 scratch2.xml
-a----       15/07/2018     10:51              0 scratch3.xml
-a----       15/07/2018     10:51              5 scratch4.xml
-a----       15/07/2018     10:51              0 scratch5.xml
-a----       15/07/2018     10:51              0 scratch6.xml

Use new Global storage path

The January 2019 release of Visual Studio Code introduces a new extension API that might be interesting for scrathpads:

An extension is now provided with a global storage path ExtensionContext.globalStoragePath that is pointing to a local directory with write/read access. This is a good option if you need to store large files that are accessible from all workspaces.

deno for TypeScript

I'd like a way to use Deno (via their VSCode extension) for TypeScript files rather than the built-in Node.js based TypeScript editor support. Is this possible? Thank you.

More initial file types

I see little reason reason not to have as many (common) languages as possible thrown in there. The best thing to do would be to use VScode's built-in and user-defined language identifiers, but for simplicity one could just make sure that all of the languages in that list are represented in typesConfig.json. If the "create new" and similar items were at the top of the list, it wouldn't matter how many or where the rest were as they could be searched for (although alphabetical would be nice if it wasn't going to order by frequency).

This should be very simple to do, I should be able to take a crack soon.

Add command to open latest scratchpad

It would be nice to have a separate command to automatically open the latest scratchpad (without asking for which one to open).

This way, I could have something like ctrl+. to open the latest scratchpad, ctrl+shift+. to select which one to open, and ctrl+alt+. to create a new one.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.