No description
Find a file
Ai-Jani dbabd80d3a feat: Implement close all new tabs functionality
- Added a `closeAllNewTabs` function to close all open new tab leaves.
- Called `closeAllNewTabs` on plugin load, settings save, and when enabling/disabling the "add actions to new tabs" setting to ensure the correct behavior.
- Refactored `lazyLoad` to `backBurner` to better reflect its purpose.
2025-03-27 22:58:04 +09:00
docs/assets docs: Improve README documentation and add screenshots 2025-03-26 10:22:17 +09:00
src feat: Implement close all new tabs functionality 2025-03-27 22:58:04 +09:00
.editorconfig Moving to a public repository 2025-03-21 11:14:12 +09:00
.gitignore Moving to a public repository 2025-03-21 11:14:12 +09:00
.gitmessage docs: Add ToDo section to README 2025-03-26 10:34:30 +09:00
.markdownlint-cli2.jsonc Moving to a public repository 2025-03-21 11:14:12 +09:00
.npmrc Moving to a public repository 2025-03-21 11:14:12 +09:00
dprint.json Moving to a public repository 2025-03-21 11:14:12 +09:00
esbuild.config.mjs Moving to a public repository 2025-03-21 11:14:12 +09:00
eslint.config.mjs chore: Update dependencies and ESLint configuration 2025-03-24 12:54:57 +09:00
LICENSE Create LICENSE 2025-03-21 10:53:43 +09:00
manifest.json fix: Correct "New Tab" to "New tab" in UI strings 2025-03-26 23:39:44 +09:00
package-lock.json chore: Update @types/estree and @types/node 2025-03-24 23:13:32 +09:00
package.json fix: Correct "New Tab" to "New tab" in UI strings 2025-03-26 23:39:44 +09:00
README.md docs: Add ToDo section to README 2025-03-26 10:34:30 +09:00
styles.css Moving to a public repository 2025-03-21 11:14:12 +09:00
tsconfig.json Moving to a public repository 2025-03-21 11:14:12 +09:00
version-bump.mjs Moving to a public repository 2025-03-21 11:14:12 +09:00
versions.json Moving to a public repository 2025-03-21 11:14:12 +09:00

About Blank

This is a community plugin for Obsidian.

Warning

The "New tab" feature relies on undocumented Obsidian behavior and may stop working in future versions. However, the command-related features should remain usable as it is designed independently.

Features

Customize the New tabs

  • When there are no tabs to display, this plugin just shows the default "New tab". So, it does NOT provide "Custom view" or other notes.
    • This means a truly empty file. For example, if you open a new file in this state, the "New tab" will automatically disappear.
  • In exchange, the customization options are somewhat limited. You can assign "Actions".
  • There is also a function to hide messages and buttons that are displayed by default.

Overview

Actions

"Actions" can be configured to execute existing "Commands" or to "Open files" that you specify. And you can group multiple actions into a single action.

Grouped action

  • A grouped action contains multiple actions, which can also contain other grouped actions.
  • When triggered, this grouped action will display a suggester with a list of all included actions, allowing you to select which specific action you want to execute.
  • This feature is intended to prevent "New tab" from being cluttered with "Actions".

Grouped action

Settings per action

Setting - Set icon
  • Set a custom icon to make the action more recognizable.
  • This is reflected in "New tabs", Grouped action, Mobile toolbar, etc.
Setting - Ask before execution
  • Displays a confirmation dialog before executing the action (Excluding Grouped action).
  • This helps prevent unfortunate incidents when you perform an action by mistake.

Ask before execution

Setting - Register as a command
  • Register the action as a new command in Obsidian.
  • In addition to registering "Open file" and "Grouped action" as commands, you can also register existing commands with slight modifications (e.g., Rename, Set icon, Ask before execution).
Setting - Display
  • Display the action in the "New tab" or not.
  • This corresponds to the case where you want to register it as a pure command without displaying it in the "New tab".

Quick Actions

  • This feature groups actions added to the "New tab" as a suggester and registers them as a new command About Blank: Quick actions.
  • You can call these actions without accessing the "New tab".

Notes

  • If commands are not properly reflected after registering or unregistering them, please reload Obsidian.
  • This plugin applies CSS by default to hide the messages and buttons on the "New tab". If the processing for the "New tab" fails to work properly, nothing may be displayed on the "New tab".
  • You can disable "New tab" and "Quick actions" features by turning off the "Add actions to New tabs" setting. This is useful if you only want to use the command-related features or if these features stop working in future versions.

ToDo

  • Setting how opens the file.
  • Improve dialog usability.
  • Add a method to display actions on the "New tab".
  • Implementing copy/move action functionality.

License

This project is licensed under the MIT License, see the LICENSE file for details.