Giter Site home page Giter Site logo

peep's People

Contributors

natewallace avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

peep's Issues

Suggestion: Add a peepToggle command

You've defined two commands: extension.peepAll and extension.peepNone. It would be great if you could also define an extension.peepToggle command, which would simply toggle the setting between true and false. This is especially handy because it can be bound to a keyboard shortcut to easily show/hide excluded files.

Not working with conditional exclude pattern

Hide the .js sibling files of typescript .ts with:

"**/*.js": {
      "when": "$(basename).ts"
    }

Visibility of .js file did not change with Peep command. Peep only toggle the boolean value.

I suggest that the Peep should just comment/uncomment the whole "files.exclude" section.

Suggestion: Use JSON5.parse() instead of JSON.parse()

The code currently uses JSON.parse() to read the settings file, so it throws an error if the file contains comments. The default settings.json file that is generated by VSCode has comments in it, which crashes Peep.

I recommend using JSON5, which gives you a .parse() function that supports comments, and other "technically invalid" JSON syntax, such as trailing commas and unquoted strings. Or you could use strip-json-comments, which simply removes comments from JSON, but doesn't handle the other things that JSON5 handles.

Of course, you'd still use JSON.stringify() when saving the file, so the comments will still be lost. But at least the code will still work and won't throw an error.

Peeked files opacity

It'd be cool if peep'd files were semi-transparent when toggled to differentiate them from files that are not hidden.

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.