Code Monkey home page Code Monkey logo

Comments (11)

alanhamlett avatar alanhamlett commented on June 11, 2024

Added an ignore preference in 0f4084a.

For example, adding this line to your Brackets preferences.json file will ignore any files matching one of the listed regular expressions:
"WakaTime.ignore": ["^/var/", "^/tmp/", "^/private/"]

from brackets-wakatime.

Wikunia avatar Wikunia commented on June 11, 2024

Thanks!

from brackets-wakatime.

drm-code avatar drm-code commented on June 11, 2024

Hi, is there any way to include only specific directories? I mean I don't really want to wakatime logged all my work, only on a certains directories, does it exist an include option? or wakatime register the hole system?

from brackets-wakatime.

alanhamlett avatar alanhamlett commented on June 11, 2024

@drm-code add this regex to your `exclude config key:

exclude = .*

Then add regexes to match each folder you DO want to log:

include = 
    \/path\/to\/project1
    \/path\/to\/project2

That goes in your ~/.wakatime.cfg file. More info here:
https://github.com/wakatime/wakatime#configuring

from brackets-wakatime.

drm-code avatar drm-code commented on June 11, 2024

Yes that works exactly as I expect, thanks :)

from brackets-wakatime.

namdnguyen avatar namdnguyen commented on June 11, 2024

Hi, I'm having some trouble setting directories to be excluded in my .wakatime.cfg file. I'm doing something like the following, but it doesn't seem to ignore activity in that directory or its subdirectories:

exclude =
    ^/home/nam/Downloads/.*

Am I doing something incorrectly? I noticed that you escaped the path slashes in your "include" example. Do I need to do that, too? Is the .* also necessary for my exclude rule? Thanks!

from brackets-wakatime.

alanhamlett avatar alanhamlett commented on June 11, 2024

That regex is correct, but Brackets is the one plugin that doesn't use the ~/.wakatime.cfg file so it's not using the exclude rule.

from brackets-wakatime.

namdnguyen avatar namdnguyen commented on June 11, 2024

My mistake. I didn't notice which repo I was in. I was actually having the issue with the cfg file and the emacs plugin. Should I recreate the issue over there?

from brackets-wakatime.

alanhamlett avatar alanhamlett commented on June 11, 2024

You can create it here:
https://github.com/wakatime/wakatime/issues/new

Also, add this line to your .wakatime.cfg and check your ~/.wakatime.log file for any related logging:
debug=true

from brackets-wakatime.

marcus-hiles avatar marcus-hiles commented on June 11, 2024

@alanhamlett this was helpful, thanks

from brackets-wakatime.

marcus-hiles avatar marcus-hiles commented on June 11, 2024

@namdnguyen have you been able to create an issue on this in the wakatime repo? Kindly share the link to it, thanks.

from brackets-wakatime.

Related Issues (6)

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.