Sublime Forum

SideBarGit

#3

You welcome, this plugin uses the classes SideBarSelection, and SideBarItem originally created for “SideBar Enhancements” plugin.

**SideBarSelection **takes a list of paths as arguments at let you know some “properties” of that paths ( hasDirectories, hasFiles, hasOnlyDirectories, hasFilesWithExtension, etc )
**SideBarItem **is for manage a path ( directory or file ) in many ways (get path with file system encoding, copy, rename, move, delete, get mime, content, etc )
**SideBarGit ** class has method getSelectedRepos ( which should be moved to class SideBarSelection at some point) that given a list of paths it returns the paths of the git repos found on that list.

I’m all in to use it as a framework to do anything related to files or directories “in the right way”, btw, still under testing and probably needs little tweaks. It would be nice if we can add these classes (SideBarSelection and SideBarItem ) to the “Default” package.

_

About creating standard-ish framework for SCM integration is hard, because different SCMs provide different options and features…

Regards

0 Likes

#4

Under OSX, some things work, some things don’t.

I’ve added /usr/local/git/bin to my $PATH, yet the command Add & Commit & Push gives me the error:

Git: No such file or directory
Possible error:
git push not found on $PATH

Working manually through the command line works fine.

0 Likes

#5

Thanks for reporting.

After upgrading to latest version, can you tell if some command is not working?

0 Likes

#6

Works!

Just need new/delete branches etc.

0 Likes

#7

Small update:

  • If a command sends output to a tab ( example a diff ), hitting F5 on that tab: will execute the command again and refresh the tab with the new contents ( example the new computed diff )
0 Likes

#8

Nice!

Are sidebar icons on the roadmap, or do those require core ST changes?

0 Likes

#9

Probably these require core ST changes

0 Likes

#10

Blamed lines can use markers.

Or differences can use region markers?

0 Likes

#11

Can you please elaborate, with examples if possible, not sure what are you talking about, improvements welcome!

0 Likes

#12

I’m too lazy to write a basic example, but you can check out this.

0 Likes

#13

I don’t know what do you want to highlight. On a diff I may imagine character differences? on blame??

0 Likes

#14

I’d say differences. Green markers for additions, red for removals :smile:

0 Likes

#15

Color schemes already highlight that! ¿? dl.dropbox.com/u/9303546/Sublime … t/diff.png

0 Likes

#16

Where can I get this diff syntax file from?

0 Likes

#17

[quote=“jbrooksuk”]

Where can I get this diff syntax file from?[/quote]

Oh :frowning: The Oblivion theme doesn’t work with Diff. Better fix that!

Sorted it :smile: github.com/jbrooksuk/Oblivion/

0 Likes

#18

Add these two below diff header to differentiate files names:

<dict> <key>name</key> <string>⎇ diff.context</string> <key>scope</key> <string>meta.diff.header.from-file</string> <key>settings</key> <dict> <key>foreground</key> <string>#9bsedd</string> </dict> </dict> <dict> <key>name</key> <string>⎇ diff.context</string> <key>scope</key> <string>meta.diff.header.to-file</string> <key>settings</key> <dict> <key>foreground</key> <string>#9bdedd</string> </dict> </dict>

PS: I’ve sent a pull request to your repo: github.com/SublimeText/Open-Include

0 Likes

#19

I’m using Cygwin’s git on windows. Other sublime git plugins work fine but this one shows this error when I try to run a command.

‘git’ is not recognized as an internal or external command,
operable program or batch file.

0 Likes

#20

Add it to your path

%SystemRoot%\system32;C:\cygwin\bin;…

0 Likes

#22

Yes, all commands are synch, blocking sublime until process end.
Someday maybe I fix this :stuck_out_tongue:

Regards,

0 Likes

#23

Hello,

I’ve got real problems using this on windows. Whenever I want to push/fetch/pull, sublime completly freezes… other commands work, but are useless without pushing and pulling :confused: any fix for that?

0 Likes