-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uninstall packages not listed in packages.cson #22
Conversation
Can you resolve the conflicts here and add some specs? |
Will-do. I did add a spec for the inverse case of |
Adds a setting that, when enabled, uninstalls packages missing from packages.cson on sync. Fixes #11.
Any status updates on this? This feature alone will convert me from |
Scratch the urgency. I just dropped this little script in my
#!/usr/bin/node
const fs = require('fs');
const { HOME } = process.env;
const haystack = fs.readFileSync(`${HOME}/.dotfiles/packages.cson`, 'utf8');
const hs = haystack.match(/"(.+)"/g).map(p => p.replace(/"/g, ''));
const needle = fs.readdirSync(`${HOME}/.atom/packages`)
.filter(p => p !== '.wlck' && haystack.indexOf(p) === -1)
.join('\n');
console.log(needle); After running a My |
Is there anything holding this up from being merged? I would love to see this feature included. |
Any progress for this feature? I would love to have this feature in package-sync. |
For the ones interested in a maintained alternative, have a look at https://atom.io/packages/manage-packages |
Adds a setting that, when enabled, uninstalls packages missing from
packages.cson
on sync. Fixes #11.