Skip to content

This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.

License

4Source/settings-profiles-obsidian-plugin

Repository files navigation

Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.

Demo

SettingsProfiles-VaultSwitchDemo_v5 The demo shows creating a new profile for an existing vault with a theme set and plugin installed. Then a new vault is created and settings profiles are installed. After installation, the previously created profile will be automatically recognized. This is selected and loads all settings including themes and plugins. The newly created vault will then have the same settings as the existing vault.

Usage

After enabling the plugin in the settings menu, you need to create a new profile.

You can do this in the settings tab. Just click on the "Add new Profile". Give it a name and select whitch options should be enabled. To switch between profiles click on "Switch to Profile" obsidian should reload.

Features

  • Multible profile settings
  • Easy and fast switch settings
  • Global settings

Plugin Settings

Profile save path

The path to store the global settings profiles. The data for the profiles is stored here. Inside there are folders for each profile there are named like the profile. In order for the profiles to be loaded, this path must point to a folder that contains profiles. This must be configured separately for each vault and device. You can also use a relative path. You must click the Change button for the changes to take effect. This will appear when you change the path.

Default: Based on XDG specification $XDG_DATA_HOME/ObsidianPlugins/Profiles

UI update

This controls whether the UI elements are activated. You must click the Change button for the changes to take effect. This will appear when you change the setting.

Default: true

UI update interval

This controls how often the UI of this plugin should be updated. You must click the Change button for the changes to take effect. This will appear when you change the setting. This could affect Obsidian's performance.

Only visible if UI update enabled.

Min: 100ms Max: 5000ms

Default: 1000ms

Profile update

This setting controls whether changes in the settings should be monitored. You must click the Change button for the changes to take effect. This will appear when you change the setting.

Default: true

Profile update delay

This setting controls how much time must pass after a change before checking whether the changes affect the profile. If changes relevant to the profile have been made and Auto-Sync is enabled, the changes are updated. You must click the Change button for the changes to take effect. This will appear when you change the setting. This could affect Obsidian's performance.

Only visible if Profile update enabled.

Min: 500ms Max: 10000ms

Default: 800ms

Profiles plus Button

Let you create a new profile with the current settings. Pressing on it will open a new window Profile options here you can configure the profile.

Profiles refresh-cw Button

The profiles list below will be reloaded from the files.

Profiles list

As soon as you have created a profile, all profiles stored in the Profile save path will be listed here.

Profile settings Button

Let you cange the Profile options for the profile.

Profile trash-2 Button

Deletes this profile and all settings. Attention! This will delete this profile globally. You can no longer access it in any vault.

Profile save Button

Lets you save the current settings to the profile. Attention! This will overwrite the current settings in this profile and cannot be undone. Is disabled if the profile settings match the current setting.

Profile Status user-check Button

This shows which profile is currently active. Pressing will deselect the current profile.

Profile Status user Button

Indicates that this profile is not selected. By pressing this button you can switch to this profile. In order for the settings to be adopted, Obsidian must be reloaded.

Profile options

Name

Containes the name of the profile.

Auto-Sync

If activated, changes in the settings are automatically saved as long as the profile is active and Profile update is enabled.

Apperance

Controls whether the appearance settings should be saved in this profile. This includes CSS snippets and themes.

App

Controls whether the app settings should be saved in this profile. The app settings includes the "Editor"-tab and "Files and links"-tab.

Bookmarks

Controls whether the bookmarks should be saved in this profile.

Community plugins

Controls the community plugins should be saved in this profile. This includes which plugins are activated, the source code and the settings that were made for the plugin.

Core plugins

Controls wheter the core plugins settings should be saved in this profile.

Graph

Controls wheter the graph settings should be saved in this profile.

Hotkeys

Controls wheter the hotkeys settings should be saved in this profile.

Status-Bar

Status-Bar users

Will be displayed if no profile is selected. Clicking on it will open the Profile Switcher.

Status-Bar user-check

Will be displayed if profile is selected with no unsaved or unloaded changes to this profile. The name of the current profile is displayed to the right. Clicking on it will open the Profile Switcher.

Status-Bar user-x

Will be displayed if profile has unsaved changes. The name of the current profile is displayed to the right. If you click on it, the unsaved settings will be saved.

Status-Bar user-cog

Will be displayed if profile has unloaded changes. The name of the current profile is displayed to the right. If you click on it, the unloaded settings will be loaded. In order for the settings to be adopted, Obsidian must be reloaded.

Commands

Settings profiles: Open profile switcher

To switch to other settings profile or create a new one.

Settings profiles: Show current profile

Displays the current settings profile.

Settings profiles: Save current profile

Save the settings of current profile.

Settings profiles: Reload current profile

Load the settings of current profile from files.

Settings profiles: Update profile status

Updates the UI elements.

Admittance

Access file outside vault

Is requiered to save setting profiles at a global space so they could be accessed from different vaults.

Contribution

Feel free to contribute.

You can create an issue if you found a bug, have an idea to improve this plugin or ask a question. Please make sure beforehand that your issue does not already exist.

Or instead create a pull request to contribute a bug fix or improvement for this plugin.

Not a developer but still want to help? You can help with testing. Either you test the current version for possible problems or, if there are currently any, you can also test pre-releases (alpha/beta). This can be easily accomplished if you install VARE. Any version of this plugin must be installed. Then simply go to VARE's Settings tab and select the version you want to test from the drop-down menu. You could also add this plugin manually just plusAdd unlisted plugin and enter 4Source and settings-profiles-obsidian-plugin. If you found a bug or unexpected behavior create an issue with the version you have tested. Before creating an issue, make sure you know how to reproduce the bug. If there is already an issue for the bug you found that is still open but you have additional information, add it to the issue.

For more info see CONTRIBUTING

Support

If you want to support me and my work.

BuyMeACoffee

About

This is a plugin for Obsidian (https://obsidian.md). Allows you to create various global settings profiles. You can sync them between different vaults. To keep all your settings in sync, you'll never have to manually adjust them again for every vault you have or create in the future.

Topics

Resources

License

Stars

Watchers

Forks