Skip to content
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

Support an optional omf- prefix for repos? #152

Closed
bobthecow opened this issue Nov 3, 2015 · 7 comments
Closed

Support an optional omf- prefix for repos? #152

bobthecow opened this issue Nov 3, 2015 · 7 comments

Comments

@bobthecow
Copy link
Member

When a package repo is in the omf org, it's namespaced: oh-my-fish/theme-foo. But when it's a user's repo, it's not: fred/plugin-bar. In this case, it's not super obvious what it's a plugin for. We should support an optional omf- prefix, which is removed just like the plugin- and theme- prefixes :)

@derekstavis
Copy link
Member

I like the idea! I see people using fish-plugin- and fish-theme- prefixes too.

@bpinto
Copy link
Member

bpinto commented Nov 3, 2015

I like the idea too (being optional).

@thecotne
Copy link
Contributor

repository name should not matter at all for user repos
plugin name can be taken from file name in db/pkg
or something like package.json can be created in repository or something like this can be done https://github.com/wbond/package_control_channel/blob/master/repository/a.json

i could contribute to this but i don't know fish language and also i can't understand how someone can write actual script in shell scripting languages i can't even use awk in my plugin

@bpinto
Copy link
Member

bpinto commented Nov 24, 2015

i can't understand how someone can write actual script in shell scripting languages i can't even use awk in my plugin

😂

package.json is more complicated than what we need. All we need is to answer a simple question: is it a theme or a plugin?

Simple is better here. Supportingomf is a good solution.

@thecotne
Copy link
Contributor

if i could write this in programming language i would lookup in db directory and there if repository is in pkg directory then it's plugin if in themes it's theme very simple

plugin/theme name is filename in db directory and repository name is never used anywhere

i always like simple in use not in implementation (if you can't achieve both)

btw i managed to rewrite php script with awk and also simplify regex thecotne/omf-plugin-artisan@c7142c3

i want to try implementing this but how can i test if change in script worked or not? (debugging/testing)

@bpinto
Copy link
Member

bpinto commented Nov 24, 2015

if i could write this in programming language i would lookup in db directory and there if repository is in pkg directory then it's plugin if in themes it's theme very simple

You don't have this for plugins that are not on the database and we do support installing from any URL and soon folder on your computer.

i always like simple in use not in implementation (if you can't achieve both)

It's very simple to use, we just add it to the name of the plugin.

Anyway, I don't think there is any point on discussing this, it's certainly not what I want to do nor you. We both want to improve the framework. So let's focus on how to improve it instead.


i want to try implementing this but how can i test if change in script worked or not? (debugging/testing)

We check if the package is a theme or a plugin here. See that we have a grep theme- we need to support omf-theme also.

That would mean: omf-plugin-blabla, omf-blabla or blabla would work and we support themes using omf-theme-blabla and theme-blabla.

@thecotne
Copy link
Contributor

i have changed my repository name https://github.com/thecotne/oh-my-fish/commit/49a2fa02cab64a03026f4e48ae6cd34463b7ea47

if/when you add support for omf- prefix #178 can be merged

i found 3 places where plugin- or theme- prefix is used
oh-my-fish/pkg/omf/cli/omf.bundle.remove.fish
oh-my-fish/pkg/omf/cli/omf.bundle.install.fish
oh-my-fish/pkg/omf/cli/omf.install.fish

it looks like a very simple change

You don't have this for plugins that are not on the database and we do support installing from any URL and soon folder on your computer.

i did not know about that

okey if not package metadata file then omf- prefix is best solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants