Code Monkey home page Code Monkey logo

git-project-manager's People

Contributors

a-sync avatar aaron7 avatar alyyasser avatar andys8 avatar damonoehlman avatar dependabot[bot] avatar dhjensen avatar dmytrokyrychuk avatar felipecaputo avatar gama11 avatar mudassirnoor avatar tedyst avatar timlogemann avatar tyriar avatar wongjn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

git-project-manager's Issues

If baseProjectsFolders has only 1 value use it as default.

I store all my git projects inside ~/projects. So naturally for me I don't need to select the projects folder as I've provided it to GPM and it's the only one, it would be a nice enhancement if this value would be accepted without needing me to confirm it once more in the dialog.

Steps to reproduce:

  1. Install GPM
  2. install one or several git repositories in a single location e.g: ~/projects/
  3. set "gitProjectManager.baseProjectsFolders": [ "~/Projects/" ], in the VSCode user prefs
  4. Hit ctrl+alt P
  5. See GPM fail to recognize there's only project folder and hit enter manually to select the projects folder

'Open Git Project' hanging in Windows

I use GitHub Desktop so few projects in the default: C:\Users\leom\Documents\GitHub

So added to settings.json: "gitProjectManager.baseProjectsFolders": [ "C:\\Users\\leom\\Documents\\GitHub" ].

I've tried adding option 1: "gitProjectManager.codePath": "C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd"

And replacing with option 2: "gitProjectManager.codePath" : { "windows": "C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd" }

And replacing with option 3: "gitProjectManager.codePath" : [ "C:\\Program Files (x86)\\Microsoft VS Code\\bin\\code.cmd" ]

But still just hangs searching for the Git Projects :(

Any ideas?

Cheers


OS: Windows 10 Ult x64
Git Project Manager: 1.0.0
VS Code: 1.7.2

The first time search is too slow

Here is my config:

{
  "gitProjectManager.baseProjectsFolders": [
        "/home/xxx/project",
        "/home/xxx/.golang/src"
    ],
    "gitProjectManager.ignoredFolders": [
        "node_modules",
        "vendor"
    ],
    "gitProjectManager.maxDepthRecursion": 3,
    "gitProjectManager.recentProjectsListSize": 10,
    "gitProjectManager.searchInsideProjects": false,
    "gitProjectManager.storeRepositoriesBetweenSessions": true
}
➜  src ls -d */*/*/ | wc -l
94

➜  project ls | wc -l          
63

Error: this.storedLists.get is not a function, with enabled cache

GPM Version 1.2.0

  • fresh start of VSCode and storeRepositoriesBetweenSessions is set to true
  • ctrl+alt+p
  • nothing happens
  • ctrl+alt+p again
  • error

gpm-load-with-cache

Edit:

  • fresh start of VSCode
  • gpm: refresh projects
  • project list refreshed appears immediately in the statusbar
  • ctrl+alt+p > error
  • gpm: refresh projects again
  • now it really refreshs the list
  • ctrl+alt+p > works

Environment variables in gitProjectManager.baseProjectsFolders should be resolved

I have several user names across various computers, in order to only specify a single project folder for Windows and non-Windows I need environment variables to be resolved in gitProjectManager.baseProjectsFolders. For example I would like to do this:

  "gitProjectManager.baseProjectsFolders": [
    "%USERPROFILE%\\Documents\\dev",
    "~/dev"
  ]

I get this message:

Directory %USERPROFILE%\Documents\dev does not exists.

Does GPM need to search subdirectories?

I have 20 directories, so it should only take a few milliseconds for GPM to list the contents of all of those directories, see a .git folder, and then list projects. However, it takes quite a bit longer because GPM scans the subdirectories of those directories. Is this necessary?

Empty project list on Windows

I'm using this config

    "gitProjectManager.baseProjectsFolders": [
        "C:\\test",
        "D:\\Dropbox\\workspace",
        "/Users/ntcong/Dropbox/workspace"
    ],
    "gitProjectManager.storeRepositoriesBetweenSessions": false,
    "gitProjectManager.codePath": [
        "C:\\Program Files\\Microsoft VS Code\\bin\\code.cmd",
        "/usr/local/bin/code"
    ],
    "gitProjectManager.recentProjectsListSize": 5,
    "gitProjectManager.maxDepthRecursion": 2,
    "gitProjectManager.warnIfFolderNotFound": true,
    "gitProjectManager.checkRemoteOrigin": false
}

It's working correctly on OSX, but return no entries on Windows (no process bar, no error log).
Is there any way to enable a verbose output so I can know what's going on here.

Please make gitProjectManager.codePath accept an array of paths

I use VS Code both in Windows and Linux and I use code-settings-sync extension so I can sync my settings and extensions between the two systems and it works great except for GPM because I can't set two path for VS Code and using no setting also doesn't works.
I can set folders for both environments like this and it works nicely:

"gitProjectManager.baseProjectsFolders": [
        "/home/xxxxx/repositories",
        "D:\\Repositories"
    ]

It would be great if I could do the same for the code executable setting (gitProjectManager.codePath) and the extension look in these paths to find Code.

Allow exact matches (from start) to always be first

My issue is that since it's alphabetical now, the top match is not always the best one. Meaning it's less deterministic which project will show up first, I can't simply type "vscode" and press enter:

image

There are a

Consider the following list of files:

  • a
  • ab
  • b
  • bb
  • c
  • cb

Here are two improvements that would help fix it:

  1. Provide option to rank exact matches from start higher, so searching for "b" would yield results like:
    • b
    • bb
    • ab
    • cb
  2. Provide option to require matches from the start, so searching "b" would yield:
    • b
    • bb

Option 1 would be ideal for my workflow, displaying the matches from the start first, and then other matches.

Typing before cache is primed does not filter results

If I type in part of a project name before GPM has finished priming its cache, there will be no filtering applied to the result. I need to then type an additional character to trigger the filtering

Reproduction steps:

  1. Launch vscode
  2. Open GPM (Cmd+Opt+P)
  3. While GPM is loading, type in e.g. 3 letters from a project
  4. Wait until GPM load is complete and GPM shows you all repos
  5. Type in 4th letter to see filter applied

PS. Great work on this extension, super useful! 👍

Better formatting of the project list

As of now, the list simply displays the full path to the project. I'm not really a fan of it.
I would find it more useful to have only the project name displayed and then in gray at the right, the path.

Open project list should be alphabetical

It makes sense for this to be alphabetical, that way it's deterministic which one displays, so in the below case I would be able to trigger the dialog, type "vsc" and hit enter and know that my vscode repository is the one that is loaded.

image

Triggering the gitProjectManager.openProject command results in a delay

After using the extension for a week or so now I've noticed myself doing the following:

  1. Create a new instance of vscode (ctrl+shift+n)
  2. Trigger gitProjectManager.openProject
  3. Start typing my search query
  4. Press enter

Unfortunately there is a significant delay (~500ms) that occurs after step 2 which means that half of my search query goes in the active file and half in the search field, this means that at step 4 I get the do you want to save dialog.

The way to get around this seems to be to pass a Thenable<string[]> to showQuickPick instead of a string[], which should show the dialog immediately, allowing successive keystrokes to add to the search query while the git repositories are being loaded.

Feature request: support sub-folders

Hi,

Thanks for a great VSCode extension. I have an issue with it, and the issue is that my git folders are extremely numerous (between 150 and 200), so I have split them per customer.

However, I cannot seem to be able to specify the "parent folder" which contains all these git repos. If I do, it will not find any repos. Any way to work around this?

Insiders not finding folders

Just saw this:

image

VS Code:

Version 1.12.0-insider
Commit 200c4d10571e252fc1b8ead1549d4259b120793c
Date 2017-04-17T06:09:49.840Z
Shell 1.6.6
Renderer 56.0.2924.87
Node 7.4.0

Ubuntu 17.04

doesn't follow symlinks

if I put in a path that's a symlink to another directory, this plugin won't find any git repos inside it.

"gitProjectManager.baseProjectsFolders": [
        "/Users/dave/create"
    ]

maxDepthRecursion no longer seems to work

I have the following setup:

{
  "gitProjectManager.baseProjectsFolders": [
    "$HOME/dev",
    "%USERPROFILE%\\Documents\\dev"
  ],
  "gitProjectManager.maxDepthRecursion": 2
}

And it seems to be looking very deep in the "%USERPROFILE%\\Documents\\dev" folder on Windows as I can see it looking at node_modules in the status bar:

image


Version details:

  • VSCode Version: Code - Insiders 1.12.0-insider (d8fe52b1789a398a7319346b8923d330f7ab1016, 2017-04-19T07:19:29.296Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
vscode-svgviewer cssho 1.4.0
EditorConfig EditorConfig 0.9.3
git-project-manager felipecaputo 1.3.0
seti-icons qinjia 0.1.3
theme-glacier Tyriar 0.0.10
theme-sapphire Tyriar 0.1.0

Update Readme

Readme is really outdated.

Take advantage of #57 and update the new keybind, the new features like Open Projects from Subfolder Alt+Shit+P and MRU List Ctrl+Shift+Q and write a new and awesome Readme

command XXX not found

Hello,

Thank you for a marvellously handy plugin!

The issue I'm struggling with is that none of the commands seems to be working following an update of VSC. The message I'm getting is 'command 'gitProjectManager.refreshProjects' not found.

Happy to provide you with any logs, if needed.

Ignore patterns

It would be great if we could set the discovery process to ignore certain folders, like node_modules or bower_components so it wouldn't have to crawl them. Would you accept a PR for this?

This may fix the performance issues brought up in #2 if the correct folders are ignored.

Use the Insiders config directory when running VS Code Insiders

I just setup a new machine and I hit this:

ENOENT: no such file or directory, open '/home/daniel/.config/Code/User/gpm-recentItems.json': Error: ENOENT: no such file or directory, open '/home/daniel/.config/Code/User/gpm-recentItems.json'
    at Object.fs.openSync (fs.js:558:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1233:33)
    at RecentItems.saveToFile (/home/daniel/.vscode-insiders/extensions/felipecaputo.git-project-manager-1.3.1/src/recentItems.js:34:12)
    at RecentItems.addProject (/home/daniel/.vscode-insiders/extensions/felipecaputo.git-project-manager-1.3.1/src/recentItems.js:51:14)
    at GitProjectManager.openProject (/home/daniel/.vscode-insiders/extensions/felipecaputo.git-project-manager-1.3.1/src/gitProjectManager.js:249:25)
    at onResolve (/home/daniel/.vscode-insiders/extensions/felipecaputo.git-project-manager-1.3.1/src/gitProjectManager.js:160:22)
    at Object.m [as _notify] (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:63456)
    at Object.enter (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:67030)
    at n.Class.derive._oncancel._run (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:68858)
    at n.Class.derive._oncancel._completed (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:68299)
    at /usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:75260
    at n.Class.derive._creator.done (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:70159)
    at Object.m [as _notify] (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:63598)
    at Object.enter (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:67030)
    at n.Class.derive._oncancel._run (/usr/share/code-insiders/resources/app/out/vs/workbench/node/extensionHostProcess.js:4:68858)

Is "didn't opened" correct English?

English isn't my primary language, but I think this isn't correct.

image

Would "It seems you haven't opened any.." be correct?
Also I think project needs to be plural.

Can't we get a native English person to validate?

GPM does not pass the correct folder case to VSCode when opening

Latest VSCode on latest OS X.

Whenever I open a project via GPM and the try to debug it, I see the following in my VSCode Debug Console:

Program path uses differently cased character as file on disk; this might result in breakpoints not being hit.

...and just like it says, my breakpoints do not get hit.

Fail Silently on Missing baseProjectFolder

I use this plugin on two different machines (with synced settings via the Settings Sync plugin), both with different directories used for projects.

Example:

[
  '/Users/user1/projects',
  '/Users/user2/projects'
]

In previous versions, having an incorrect path in my baseProjectsFolders array would fail silently.

So if I was on Machine 1/User 1, it would index those projects properly and then fail silently when it couldn't find the user2 directory.

With the last update it now fails completely when it can't find all of the folders in the array.

It would be nice to go back to the previous way of handling this.

Can't open projects in Insider's Build of VSCode

Hi,

I'm using the Insiders-Build of Code.

Version 1.5.0-insider
Commit 4fc690be310dd02e0ab6529c0b9bf348a8b26a19
Date 2016-09-08T11:04:22.252Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0

When I try to open one of the projects from my list the following error appears:

Error while showing Project list: TypeError: e.done is not a function

I've also tried to mitigate the problem by refreshing the project list but the error remained.

Regards,

tilde alias ~ for baseProjectsFolders doesn't work

the full path works

"gitProjectManager.baseProjectsFolders": [
        "/Users/dave/projects"
    ],

but this plugin can't find the directory when using the tilde alias for home

"gitProjectManager.baseProjectsFolders": [
        "~/projects"
    ],

Not displaying default remote if it is not named "origin"

I found this randomly when looking for possible causes of #62 .

In your code to display a little info about repos, you explicitly call "git remote show origin". This will fail if the default remote is not called "origin". In such case, it just shows "origin" string.

How to reproduce: Update your .git/config to something like

[core]
	repositoryformatversion = 0
	filemode = true
	bare = false
	logallrefupdates = true
[remote "origin_"]
	url = [email protected]:felipecaputo/git-project-manager.git
	fetch = +refs/heads/*:refs/remotes/origin/_*
[branch "master"]
	remote = origin_
	merge = refs/heads/master

Perhaps, it's a marginal issue but anyway...

Cheers,
Jan

Support mercurial

Hi,
the extension is very useful. Most of my projects are versioned by git by I have a lonely mercurial repo or two. Therefore, I was wondering how difficult it would be to add support for other versioning systems - hg, svn, ... Perhaps they can be recognized by the presence of .hg, .svn, ... directories easily?
Thanks in any case.

Project folder in settings

It'd be nice if we could set a list of project folders in addition to locating git projects within a folder.

Doesn't open new code window on linux mint 17.3 - code: bad option: -n

Is anyone else having this issue? It refuses to run the new code instance and I get the following error:

[Plugin Host] Error: Command failed: /bin/sh -c code -n "/go/src/github.com/blamarche/assemble-web-chat"
code: bad option: -n

    at ChildProcess.exithandler (child_process.js:215:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)  code: bad option: -n

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.