Giter Club home page Giter Club logo

vscat's People

Contributors

omartawfik avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

emaland

vscat's Issues

Piping output to file (or to `less`) doesn't display syntax highlighting

Check these first few output lines from executing vscode ./package.json | less -R:

  1 │ {
  2 │ ··"name":·"vscat",
  3 │ ··"description":·"Bringing·VS·Code·syntax·highlighting·to·the·term…
  4 │ ··"version":·"0.0.0",
  5 │ ··"private":·false,
  6 │ ··"repository":·"https://github.com/OmarTawfik/vscat",
  7 │ ··"author":·"Omar·Tawfik·<[email protected]…
  8 │ ··"license":·"MIT",
  9 │ ··"main":·"out/src/index.js",
 10 │ ··"bin":·{
 11 │ ····"vscat":·"out/src/cli.js"
 12 │ ··},
 13 │ ··"scripts":·{
 14 │ ····"generate-metadata":·"ts-node-transpile-only·./scripts/metadat…
 15 │ ····"generate-readme":·"ts-node·./scripts/readme",
 16 │ ····"lint":·"jest·&&·prettier·.·--list-different·&&·tsc"
  • Spaces are displayed as dots by default.
  • Lines that are longer than a certain number of characters are truncated with an ellipses (sounds like a bug)
  • Syntax highlighting doesn't show up with less -R.

Suggestions:

  • An option to omit characters related to coloring and/or showing whitespaces.
  • An option to force ANSI color escape sequences and OSC 8 hyperlink sequences, even if the output is piped.

nested globs are not matched during language-detection

When provided a file name, we try to do our best to match it to a specific language, according to VSCode's own configuration files. We use a library called micromatch (link) for glob-matching.

Using it, we can match the expression Dockerfile.* correctly to foo/Dockerfile.Production. But currently it does not match nested globs, like **/.git/config. So we would fail to deduce that foo/.git/config is a properties file.

supporting nested languages

One of the metadata pieces we collect for each grammar is the injectTo and embeddedLanguages properties. These can be passed to vscode-textmate so that it can support nested languages. Currently we do not. We should support that and add tests accourdingly.

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.