-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Copy installed plugins to clipboard #38
Comments
Just want the name? |
hello, I was thinking of the plugin name and the version, to copy the list to the clipboard.
Started on this first to see if it will show properly |
@creecros I will be using clipboardjs, from Glancer plugin as thats the only way I know how. I'm working on it as we speak |
<span class="copy-installed-list-format bar-btn-format btn" title="<?= t('Copy formatted version') ?>" data-clipboard-text="
<?php foreach ($plugins as $pluginFolder => $plugin): ?>
<?= trim('- '. $this->text->e($plugin->getPluginName()) .' v'. $this->text->e($plugin->getPluginVersion())) ?>
<?php endforeach ?>
"> Any idea how to improve this so it creates a list? one plugin name per line? For the clipboard function to work, it must be inside |
ok so i found |
Im struggling with the whitespace at the start of the line... I tried |
keeping all the code together seemed to have worked
|
There seems to be no real practical way to copy the installed list of plugins to the clipboard so they can be shared across forum posts etc,
The text was updated successfully, but these errors were encountered: