Giter Club home page Giter Club logo

mog's People

Contributors

arialdomartini avatar witchard avatar x10an14 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar

mog's Issues

TypeError when specifying regex which may return empty matches

Hi!

With this config in my ~/.mogrc;

[xml]
name=.*(?=(nuget\.config|NuGet\.Config|\.([fc]sproj|ruleset)))
argreplace=pygmentize -l xml -O style=solarized-light %F

I get the following output for files named like the following

  • <folder path>/nuget.config
  • and <folder path>/NuGet.Config
    (Don't ask my why the mix of capitalization, blame dotnet core on Linux =/).

All the while, this file matches nicely and displays correctly; <folder path>/<Project name>.csproj.

This is the error I get;

-> $ mog <failing Nuget xml file>
==> <failing Nuget xml file> <==
==> Error: "TypeError('replace() argument 2 must be str, not None',)" when processing file <failing Nuget xml file> <==

Debug mode

Explain what things are being tried as it runs

Improve help

-h is a bit vague as it references config variables. make it clearer

Decimal representation in '.sh' files fails

When a BASH script('.sh' file) that has a decimal number in its contents is rendered with the mog command, it tends to produce erroneous output where the mantissa part(numbers after the decimal point) of the number is a different number in itself and not as a whole with the abscissa.

Here is a link for the output.

Add support for following symlinks

By default symlinks are reported as such by file, with the default config this can lead to symlinks being run through ls due to them not matching on higher level things. Following them in the python will mean this doesn't happen. Note, we probably also want to lower the priority of the filesystem section in the default config.

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.