lcfd / trak

Keep a record of the time you dedicate to your projects.
https://usetrak.com
GNU Affero General Public License v3.0
11 stars 2 forks source link

Neovim support #8

Open lcfd opened 10 months ago

lcfd commented 10 months ago
25d96b commented 10 months ago

I would like to work on this if ok! πŸ’ͺ

lcfd commented 10 months ago

Hi @lrnzmonaco! It would be amazing.

My plan is to keep everything in this repository. I want to create a dedicated folder, with a name like neovim/.

Do you see any problem with this approach? I'm a Lazy user but I don't know if installing a plugin from a subfolder is possible.

25d96b commented 10 months ago

So, it seems impossible to install a plugin from the subfolder. I may investigate more in the next few days.

Maybe I can come up with a very first basic version in the weekend that implements the basic commands, and a list of ideas that I think can be interesting for neovim integration.

For example, I think it can be an interesting feat to work on something like:

I don't know, what do you think? Do you have some idea that you want to integrate?

lcfd commented 10 months ago

So, it seems impossible to install a plugin from the subfolder. I may investigate more in the next few days.

Ok, let's see what we can do. Anyway, if it's impossible I'll create a dedicated repository for the Neovim plugin. I just wanted to avoid splitting the project too much into different places, but at some point for certain needs that will probably be impossible.

I think I'll create an organization for these new integrations.

Maybe I can come up with a very first basic version in the weekend that implements the basic commands

It would be amazing! 🀩

set a root folder for the project

what project do you mean?

launch (autocmd?) the plugin

πŸ‘ If well design, autocmds are great

record how many lines you add/remove from each file inside the project folder return that information in the track report

Maybe that's a bit too much for the moment, I would avoid adding features that don't exist in the CLI. trak is a generic tool, not only for developers. It's an interesting idea btw, we can design something in a proposal issue.

Do you have some idea that you want to integrate?

As first I desire to have a 1:1 mapping of the features provided by the CLI. Start, Stop, Status, Report, and show their outputs in Neovim.

What could be a blast is to have the current tracked project name and the time elapsed always visible, maybe in Lualine.

25d96b commented 10 months ago

trak.nvim

Hey @lcfd , I have implemented the very first version of this. For now, you can start and stop the project. I keep working on the other features. A refactoring is needed after implementing all the needed features, but it works. The only bug that I'm currently aware of is here relative to the iso format of date.

I've created the repo on my account but let me know if you need to move it somewhere else!

lcfd commented 10 months ago

Hi @lrnzmonaco !

I have created a dedicated repository, if you can move the plugin here it would be awesome:

https://github.com/usetrak/trak.nvim

25d96b commented 10 months ago

usetrak/trak.nvim already exists and You don’t have the permission to create public repositories on usetrak

If you delete your trak.nvim repo, I can just transfer the ownership of mine to usetrak organization 🦾

lcfd commented 10 months ago

@lrnzmonaco I deleted it πŸ˜„ I'll wait for the transfer then, thank you!

25d96b commented 10 months ago

@lcfd it seems like the fact that I don't have permission to create a public repo on usetrak makes it not possible to transfer the repo. Any idea?

lcfd commented 10 months ago

@lrnzmonaco I suggest that:

I'll create the repository again. You can fork it, copy your code in the fork, and do a PR.

In theory, it should be possible since the repository is public πŸ€”

25d96b commented 10 months ago

In order for the repo to be forked you need to initialize it.

failed to fork: HTTP 403: The repository exists, but it contains no Git content. Empty repositories cannot be forked. (https://api.github.com/repos/usetrak/trak.nvim/forks)

just push something to it. an empty readme should do the work!

lcfd commented 10 months ago

@lrnzmonaco Created