Hello,
Thank you a LOT for this pluggin, very efficient.
Have you progress to the sync functionality ? The Git repo seems to be inactive, did you drop the project or do you make a pause for some times ?
Thx !
Hello,
Thank you a LOT for this pluggin, very efficient.
Have you progress to the sync functionality ? The Git repo seems to be inactive, did you drop the project or do you make a pause for some times ?
Thx !
Sorry if I am reviving an old thread but this is where I was sent to post directly from the help page for this plugin. As somebody mentioned earlier, this is a must have plugin for somebody coming from Evernote (along with History plugin, Agenda plugin, Hot folder plugin to name a few).
This plugin doesn't work for me well.
The other Note Tabs plugin works fine as expected.
But this one mostly doesn't. Most of the time it refuses to add the favorite and instead displays some strange message OK/CANCEL without giving any more details. But occasionally it works, on the same note, after a few tries, sometimes 3-5 times try, I get the empty box OK/CANCEL and then suddenly it works fine, on the same note.
This is a new installation of Joplin, have no data in it yet.
Also the favorite deletion dialogue could be improved because it doesn't say anything other than the buttons.
The last picture shows how it looks like when it works on the same note after trying it a few times.
Thank you for the effort put in this plugin. Much appreciated.
PS - what's up with this limit of only being able to send 1 picture per post in this forum. Is this limit set for newbies? Makes no sense. I have to combine different pictures into one when I am trying to explain something.
Joplin Version 2.8.8 (2.8.8)
The theme I am using is Blank theme from the official Joplin plugin repository. It offers better visibility so I prefer to use it. Maybe that could be the culprit why no text showing in the error box?
So I am trying to write a plugin that toggles the visibility of the sidebar, the favourites panel and the notes list at the same time.. Sometimes I like to have just one big notes editor window visible only.
I've kind of succeeded, but whenever I make everything invisible, and then toggle it back to visibility, the layout gets reset. Anyone know how to fix this?
Here is my very simple code:
joplin.plugins.register({
onStart: async function() {
await joplin.views.toolbarButtons.create('toggleCustomButton', 'toggleCustom', 'noteToolbar');
await joplin.commands.register({
name: 'toggleCustom',
label: 'Custom Toggle',
iconName: 'fas fa-bullseye',
execute: async () => {
await joplin.commands.execute('toggleNoteList');
await joplin.commands.execute('toggleSideBar');
await joplin.commands.execute('favsToggleVisibility');
}
})
},
});
This is what it looks like before toggling when everything is visible:
And then if I toggle them all invisible, and visible again, the panel height is reset:
Anyone got any ideas if this can be fixed through code or CSS?
Re: One button to toggle on and off the sidebar, notes list and favorites
Hi all. In case anyone is interested, I managed to work out how to fix this. The current visibility of panels is held in a global setting, so I use that. I can't just use the existing toggle commands, because the order in which you make each panel visible and invisible is important, and different depending on whether you are toggling on or off!
If you happen to want a button which toggles the sidebar, notes list and favourites on and off, without screwing up the panel heights, you could save this js file somewhere and reference it in the Advanced Settings of your plugins.
Use at your own risk: Works for my layout, but if you are using any other fancy panels, may have unexpected results
/* joplin-manifest:
{
"manifest_version": 1,
"id": "com.jeffries.customtoggle",
"app_min_version": "1.4",
"name": "Note list, sidebar and favorites toggle buttons",
"description": "Add buttons to toggle everything",
"version": "0.0.1",
"author": "Nick Jeffries",
"homepage_url": "https://joplinapp.org"
}
*/
joplin.plugins.register({
onStart: async function() {
function recurseFind(item, key) {
if (item.key === key) return item;
if (item.children) {
for (const child of item.children) {
const found = recurseFind(child, key);
if (found) return found;
}
}
return null;
}
await joplin.views.toolbarButtons.create('toggleCustomButton', 'toggleCustom', 'noteToolbar');
await joplin.commands.register({
name: 'toggleCustom',
label: 'Custom Toggle',
iconName: 'fas fa-bullseye',
execute: async () => {
const userLayout = await joplin.settings.globalValue('ui.layout');
const sideBarObject = recurseFind(userLayout,'sideBar');
const noteListObject = recurseFind(userLayout,'noteList');
const favBarObject = recurseFind(userLayout,'plugin-view-joplin.plugin.benji.favorites-favorites.panel');
if (!sideBarObject || !noteListObject || !favBarObject) {
alert('Cannot toggle! Sidebar, Notelist or Favorites panel not found in layout!');
return;
}
if (sideBarObject.visible) {
// Sidebar is visible, so we need to hide everything in this order to avoid changes to panel height:
if (favBarObject.visible) await joplin.commands.execute('favsToggleVisibility');
await joplin.commands.execute('toggleSideBar');
if (noteListObject.visible) await joplin.commands.execute('toggleNoteList');
} else {
// Sidebar is invisible, so we need to make visible in this order to avoid changes to panel height:
await joplin.commands.execute('toggleSideBar');
if (!favBarObject.visible) await joplin.commands.execute('favsToggleVisibility');
if (!noteListObject.visible) await joplin.commands.execute('toggleNoteList');
}
}
})
},
});