You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2020. It is now read-only.
@bryphe I've noted in apps like vscode or hyperterm, or even vim statusline plugins like airline with fugitive the git plugins include information regarding changes to branch such as deletions and additions, which is quite helpful at a glance to know where you stand
Example (hyper term)
I was thinking something simple like a plus for additions, minus for deletions and maybe a similar symbol to the above for changes.
I realise this will require some extra methods on the git service which theres some future plans to refactor or re-implement but would adding those methods and showing that in the git service/plugin as it stands be ok?.
Implementation Ideas
I was thinking this could be approached using an npm package (which is one of the many values of having Oni as a frontend aka access to node libraries)
The package which comes to mind is simpleGit which is a lightweight wrapper around git and a very good jumping off point for loads of git functionality like cloning repos, renaming branches, merges etc.
Potential Issues
The way that vim handles changes in buffers is an area of concern as I've looked at the implementation of plugins like fugitive and gitgutter and one particular area of concern is that whilst editing a buffer if unsaved edits are actually not saved to the same location on disk so these plugins use a series of work arounds for that.
For the scope of what I intend a naive approach would be only reflect changes on save, however the limitation there would be that by going down this route rather than using something like vim-fugitive is that this is a later issue which might be faced although potentially a similar workaround can be implemented at the time if it comes to it
The text was updated successfully, but these errors were encountered:
Problem/Desired Feature
@bryphe I've noted in apps like
vscode
orhyperterm
, or even vim statusline plugins likeairline
withfugitive
the git plugins include information regarding changes to branch such as deletions and additions, which is quite helpful at a glance to know where you standExample (hyper term)
I was thinking something simple like a plus for additions, minus for deletions and maybe a similar symbol to the above for changes.
I realise this will require some extra methods on the git service which theres some future plans to refactor or re-implement but would adding those methods and showing that in the git service/plugin as it stands be ok?.
Implementation Ideas
I was thinking this could be approached using an
npm
package (which is one of the many values of having Oni as a frontend aka access to node libraries)The package which comes to mind is
simpleGit
which is a lightweight wrapper around git and a very good jumping off point for loads of git functionality likecloning repos
,renaming branches
,merges
etc.Potential Issues
The way that vim handles changes in buffers is an area of concern as I've looked at the implementation of plugins like
fugitive
andgitgutter
and one particular area of concern is that whilst editing a buffer if unsaved edits are actually not saved to the same location on disk so these plugins use a series of work arounds for that.For the scope of what I intend a naive approach would be only reflect changes on save, however the limitation there would be that by going down this route rather than using something like
vim-fugitive
is that this is a later issue which might be faced although potentially a similar workaround can be implemented at the time if it comes to itThe text was updated successfully, but these errors were encountered: