Skip to content

Instantly share code, notes, and snippets.

@letam
Last active October 7, 2025 18:36
Show Gist options
  • Select an option

  • Save letam/65fd4ebb9ae93f10759a19eb93a16eb8 to your computer and use it in GitHub Desktop.

Select an option

Save letam/65fd4ebb9ae93f10759a19eb93a16eb8 to your computer and use it in GitHub Desktop.

Revisions

  1. letam revised this gist Oct 7, 2025. 1 changed file with 11 additions and 1 deletion.
    12 changes: 11 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    # Backup of Settings for Obsidian Shell Commands plugin

    There's this cool (potentially dangerous) plugin for Obsidian to execute system commands and scripts via hotkeys, command palette, automated events, and execution via URI links: https://github.com/Taitava/obsidian-shellcommands
    There's this cool (potentially dangerous) plugin for Obsidian to execute system commands and scripts via hotkeys, command palette, automated events, and execution via URI links:
    - https://github.com/Taitava/obsidian-shellcommands

    ## How to backup or restore settings for shellcommands plugin

    @@ -9,3 +10,12 @@ Export/import the file at $OBSIDIAN_VAULT/.obsidian/plugins/obsidian-shellcomman
    ## How to restore hotkeys

    Copy hotkeys from hotkeys-shellcommands.json to $OBSIDIAN_VAULT/.obsidian/hotkeys.json

    ## TODO

    - [ ] Create script to backup config
    - [ ] Create script to restore it

    ## Credits

    - [Comment from catfist in github repo discussion](https://github.com/Taitava/obsidian-shellcommands/discussions/151#discussioncomment-3071934)
  2. letam created this gist Oct 7, 2025.
    11 changes: 11 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Backup of Settings for Obsidian Shell Commands plugin

    There's this cool (potentially dangerous) plugin for Obsidian to execute system commands and scripts via hotkeys, command palette, automated events, and execution via URI links: https://github.com/Taitava/obsidian-shellcommands

    ## How to backup or restore settings for shellcommands plugin

    Export/import the file at $OBSIDIAN_VAULT/.obsidian/plugins/obsidian-shellcommands/data.json

    ## How to restore hotkeys

    Copy hotkeys from hotkeys-shellcommands.json to $OBSIDIAN_VAULT/.obsidian/hotkeys.json
    108 changes: 108 additions & 0 deletions data.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,108 @@
    {
    "settings_version": "0.23.0",
    "debug": false,
    "obsidian_command_palette_prefix": "Execute: ",
    "preview_variables_in_command_palette": true,
    "show_autocomplete_menu": true,
    "working_directory": "",
    "default_shells": {},
    "environment_variable_path_augmentations": {},
    "show_installation_warnings": true,
    "error_message_duration": 20,
    "notification_message_duration": 10,
    "execution_notification_mode": "disabled",
    "output_channel_clipboard_also_outputs_to_notification": true,
    "output_channel_notification_decorates_output": true,
    "enable_events": true,
    "approve_modals_by_pressing_enter_key": true,
    "command_palette": {
    "re_execute_last_shell_command": {
    "enabled": true,
    "prefix": "Re-execute: "
    }
    },
    "max_visible_lines_in_shell_command_fields": false,
    "shell_commands": [
    {
    "id": "giz9dmd254",
    "platform_specific_commands": {
    "default": "date +\"%Y-%m-%d %H:%M:%S \" | tr -d \"\\n\""
    },
    "shells": {},
    "alias": "print timestamp",
    "icon": null,
    "confirm_execution": false,
    "ignore_error_codes": [],
    "input_contents": {
    "stdin": null
    },
    "output_handlers": {
    "stdout": {
    "handler": "current-file-caret",
    "convert_ansi_code": true
    },
    "stderr": {
    "handler": "notification",
    "convert_ansi_code": true
    }
    },
    "output_wrappers": {
    "stdout": null,
    "stderr": null
    },
    "output_channel_order": "stdout-first",
    "output_handling_mode": "buffered",
    "execution_notification_mode": null,
    "events": {},
    "debounce": null,
    "command_palette_availability": "enabled",
    "preactions": [],
    "variable_default_values": {}
    },
    {
    "id": "cmbyyxkjdg",
    "platform_specific_commands": {
    "default": "date +\"%H:%M:%S \" | tr -d \"\\n\""
    },
    "shells": {},
    "alias": "print time-only stamp",
    "icon": null,
    "confirm_execution": false,
    "ignore_error_codes": [],
    "input_contents": {
    "stdin": null
    },
    "output_handlers": {
    "stdout": {
    "handler": "current-file-caret",
    "convert_ansi_code": true
    },
    "stderr": {
    "handler": "notification",
    "convert_ansi_code": true
    }
    },
    "output_wrappers": {
    "stdout": null,
    "stderr": null
    },
    "output_channel_order": "stdout-first",
    "output_handling_mode": "buffered",
    "execution_notification_mode": null,
    "events": {},
    "debounce": null,
    "command_palette_availability": "enabled",
    "preactions": [],
    "variable_default_values": {}
    }
    ],
    "prompts": [],
    "builtin_variables": {},
    "custom_variables": [],
    "custom_variables_notify_changes_via": {
    "obsidian_uri": true,
    "output_assignment": true
    },
    "custom_shells": [],
    "output_wrappers": []
    }
    20 changes: 20 additions & 0 deletions hotkeys-shellcommands.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    {
    "obsidian-shellcommands:shell-command-giz9dmd254": [
    {
    "modifiers": [
    "Alt",
    "Shift"
    ],
    "key": ";"
    }
    ],
    "obsidian-shellcommands:shell-command-cmbyyxkjdg": [
    {
    "modifiers": [
    "Alt",
    "Shift"
    ],
    "key": "'"
    }
    ]
    }