Git Product home page Git Product logo

Comments (10)

diegomgarcia avatar diegomgarcia commented on June 8, 2024 2

Nice catch, I will add a filter on the file type to change the editor to C++ Builder. However I'm relocating to another country so I expect to get into this issue on next month.

from delphi-wakatime.

alanhamlett avatar alanhamlett commented on June 8, 2024 2

The editor displayed on your dashboard comes from parsing the heartbeat's User-Agent header or plugin json post value. For C++ Builder to be parsed I'll need to first add it to the list of supported editors.

from delphi-wakatime.

shaunroselt avatar shaunroselt commented on June 8, 2024 1

I'm thinking now.

If you add this feature to show C++ Builder, then it probably makes sense to rename this repo to "rad-studio-wakatime" as it's not just Delphi anymore.

from delphi-wakatime.

diegomgarcia avatar diegomgarcia commented on June 8, 2024 1

Hey @shaunroselt, I think it make sense. First we just have to check if creating just the filter will fix everything for C++ or if it will raise some new issues. If something like this happens it would be better to separate into two packages.

Lets test it as soon as I have a little more time to get into this issue to work on.

from delphi-wakatime.

alanhamlett avatar alanhamlett commented on June 8, 2024 1

Added C++ Builder to the list of supported IDEs. The User-Agent header will need to be changed when the plugin detects itself running in C++ builder from:

UserAgent = 'delphi/' + DelphiVersion + ' delphi-wakatime/' + PluginVersion;

To:

UserAgent = 'delphi/' + DelphiVersion + ' cppbuilder-wakatime/' + PluginVersion;

from delphi-wakatime.

shaunroselt avatar shaunroselt commented on June 8, 2024 1

Hey @shaunroselt can you test the latest commit from the development branch to see if it works?

Ah. You beat me to it 😁. I wanted to add C++ Builder support this weekend 😂.

Thanks. I'll test the development branch over the weekend and get back to you.

from delphi-wakatime.

shaunroselt avatar shaunroselt commented on June 8, 2024

The editor displayed on your dashboard comes from parsing the heartbeat's User-Agent header or plugin json post value. For C++ Builder to be parsed I'll need to first add it to the list of supported editors.

Can we perhaps get it added so long then, please?

It can probably have the same color as Delphi since its logos are pretty much the same in terms of dominant colors.

from delphi-wakatime.

diegomgarcia avatar diegomgarcia commented on June 8, 2024

Thanks @alanhamlett it's on my todo list now ;)

from delphi-wakatime.

diegomgarcia avatar diegomgarcia commented on June 8, 2024

Hey @shaunroselt can you test the latest commit from the development branch to see if it works?

from delphi-wakatime.

shaunroselt avatar shaunroselt commented on June 8, 2024

I ended up never testing the development branch.

Is C++ Builder support still planned?

I'm still keen on this feature. It would be nice to have.

from delphi-wakatime.

Related Issues (9)

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.