Commit graph

65 commits

Author SHA1 Message Date
Ai-Jani
7e4a366ba3
Merge pull request #15 from Ai-Jani:work
bump version to 1.2.0
2025-07-16 00:11:54 +09:00
Ai-Jani
f62aaeb6a9 chore(release): bump version to 1.2.0 2025-07-16 00:07:40 +09:00
Ai-Jani
52dc00c6e9
Merge pull request #14 from Ai-Jani/work
Refactoring of settings appearance, adding features related to icon placeholders, etc.
2025-07-15 23:51:15 +09:00
Ai-Jani
f15ca38db2 feat: Display the names of icons already set as placeholders in icon suggester. 2025-07-15 23:45:18 +09:00
Ai-Jani
3a825e2cfc feat: Notify when "Add actions to the empty file view (new tab)" setting is changed. 2025-07-15 23:36:34 +09:00
Ai-Jani
06fbe64df1 refactor: Adjusting the appearance of the Settings tab.
- Change the settings to hide "Clean up settings" by default.
- Added tooltips to the show/hide buttons for settings items.
2025-07-15 23:26:05 +09:00
Ai-Jani
354ea2e27c
Merge pull request #13 from Ai-Jani/work
fix typo (adopt cspell) / add appearance settings with vertical centering and layout controls
2025-07-12 22:12:27 +09:00
Ai-Jani
e842113c93 feat: add appearance settings with vertical centering and layout controls
- Add new editStyles module for centralized CSS variable management
- Introduce vertical centering option for action list in empty state
- Add margin-top deletion setting for more precise centering
- Implement collapsible appearance settings section in settings tab
- Refactor CSS variable structure to support multiple layout modes
- Update styles.css with new CSS variables for layout customization
- Move icon-text gap setting under appearance section for better organization
2025-07-12 22:02:47 +09:00
Ai-Jani
9ce5920a92 fix: typo (adopt cspell) 2025-06-14 17:49:31 +09:00
Ai-Jani
ed5a0d9ddc refactor: Refactor CSS and constants for improved empty file view styling 2025-06-01 19:58:30 +09:00
Ai-Jani
9bb40b657b
Merge pull request #11 from Ai-Jani:work
bump version to 1.1.0
2025-04-24 18:37:25 +09:00
Ai-Jani
d2a1aedc83 chore(release): bump version to 1.1.0 2025-04-24 18:30:46 +09:00
Ai-Jani
14204ad76d docs: Rename "New tab" to "empty file view (new tab)" in README
- Replaced all instances of "New tab" with "empty file view (new tab)" in the README.md file for consistency and clarity.
- Updated descriptions and explanations to accurately reflect the plugin's functionality related to the empty file view.
2025-04-24 18:07:14 +09:00
Ai-Jani
0008e79ebb fix: Clarify error message for button addition failure
- Updated the error message in `src/main.ts` to specifically mention "the empty file view (new tab)" instead of "New tab" for better clarity and consistency with other UI elements.
2025-04-24 17:49:37 +09:00
Ai-Jani
2741d83fbe feat: Update text in UI (Response to sentence case, etc.)
- Updated descriptions and labels in settings to refer to the "empty file view (new tab)" instead of "New tabs" for better clarity.
- Modified the "Quick Actions" label in `src/main.ts` to dynamically include the command name.
- Updated the description for the "Display" setting in `ActionSettingsModal.ts` to explicitly mention both the empty file view and "Quick actions".
- Added quotes to "Save" in the description for child action changes in `ActionSettingsModal.ts` for better readability.
2025-04-24 17:45:48 +09:00
Ai-Jani
3d4828d7d4 chore: Add license information to esbuild output and update dependencies
- Added a footer to the esbuild output file (`esbuild.config.mjs`) that includes license information for the `uuid` dependency.
- Moved the license section in `README.md` to the end of the file.
- Updated development dependencies in `package.json` and `package-lock.json` including `@eslint/js`, `@types/node`, `esbuild`, `eslint`, `typescript`, and `typescript-eslint`.
2025-04-24 17:01:25 +09:00
Ai-Jani
5e9cca0ac9
Merge pull request #10 from Ai-Jani:work
bump version to 1.0.2
2025-03-30 22:33:35 +09:00
Ai-Jani
4fd342b5f3 chore(release): bump version to 1.0.2 2025-03-30 22:32:40 +09:00
Ai-Jani
26c75479c7 chore: Add dependencies section to README
- Added a "Dependencies" section to the README.md file.
- Listed the project's dependency on the [uuid](https://github.com/uuidjs/uuid) library, including its license.
2025-03-30 22:28:25 +09:00
Ai-Jani
df8f1c5409
Merge pull request #9 from Ai-Jani:work
bump version to 1.0.1
2025-03-30 20:46:15 +09:00
Ai-Jani
5236cbf3e4 chore(release): bump version to 1.0.1 2025-03-30 20:44:58 +09:00
Ai-Jani
a263120d62 docs: Improve description formatting
- Updated the README.md, manifest.json, and package.json descriptions to improve readability and formatting.
- Removed unnecessary quotation marks and corrected spacing.
2025-03-30 20:22:28 +09:00
Ai-Jani
03900d213f
Merge pull request #8 from Ai-Jani:work
bump version to 1.0.0
2025-03-30 19:45:11 +09:00
Ai-Jani
ba1baf72d3 chore(release): bump version to 1.0.0 2025-03-30 19:40:50 +09:00
Ai-Jani
797b69dfb0 feat: Reset all new tabs on unload
- Added a function call to `closeAllNewTabs` in the `onunload` lifecycle method. This ensures that any new tabs created by the plugin are closed when the plugin is unloaded, preventing potential issues.
2025-03-30 19:09:39 +09:00
Ai-Jani
189467e583 docs: Update README.md
- Corrected a typo in the first sentence.
- Added a note about potential display issues with community themes.
2025-03-30 15:16:24 +09:00
Ai-Jani
f464cbfbee feat: Add icon-text gap setting
- Added a new setting to control the gap between the icon and text of the action buttons.
- Implemented a slider in the settings tab to adjust the gap, with a range of 0-50px and a default value of 10px.
- Updated the `styles.css` to use a CSS variable for the gap, allowing for dynamic adjustment.
- Added `adjustInt` function to `src/commons.ts` to truncate the number.
- Updated `src/constants.ts` to include the new CSS variable.
- Updated `src/main.ts` to set the CSS variable on plugin load.
- Added type checking for the new setting.
- Updated descriptions for hide message and hide default actions.
- Updated type checking for settings.
2025-03-30 14:46:38 +09:00
Ai-Jani
62dda5e1f2 Add release workflow 2025-03-28 17:42:28 +09:00
Ai-Jani
8277caef1d chore: Update manifest and versions for Obsidian 1.8.4 compatibility
- Updated `manifest.json` to reflect compatibility with Obsidian 1.8.4.
- Modified the description in `manifest.json` and `package.json` to reflect the changes.
- Updated `versions.json` to reflect the new minimum Obsidian version.
2025-03-28 17:38:06 +09:00
Ai-Jani
deb73e436d
Merge pull request #7 from Ai-Jani:work
Implement closeAllNewTabs for reset / refactor: divide action.ts /  add docs
2025-03-28 11:07:16 +09:00
Ai-Jani
84ec3328df docs: Add CHANGELOG and MaintenanceReport
- Added `CHANGELOG.md` to track changes.
- Added `docs/MaintenanceReport.md` to document compatibility with Obsidian versions, especially for features relying on undocumented behavior.
- Updated `README.md` to include a link to the `MaintenanceReport`.
2025-03-28 11:00:38 +09:00
Ai-Jani
2eec54f371 refactor: Move loggerOnError to commons.ts
- Moved `loggerOnError` function from `src/utils/loggerOnError.ts` to `src/commons.ts`.
- Updated import paths in `src/settings/action-edit.ts`, `src/settings/action-settingsModal.ts`, `src/settings/settingTab.ts`, `src/main.ts`, `src/settings/action-settings.ts`, `src/settings/hideDefault.ts`, and `src/ui/executionSuggester.ts` to reflect the change.
- This improves code organization by centralizing the error logging function in `commons.ts` and reducing duplication.
2025-03-28 10:31:15 +09:00
Ai-Jani
ad3a79e025 refactor: Move to action-basic.ts from commons.ts
- Removed `allActionsBloodline` and `genNewCmdId` functions from `src/commons.ts`.
- Moved `allActionsBloodline` and `genNewCmdId` functions to `src/settings/action-basic.ts`.
- Updated import paths in `src/settings/action-settingsModal.ts` and `src/main.ts` to reflect the change.
- This improves code organization by centralizing action-related logic in `action-basic.ts` and removing unnecessary dependencies from `commons.ts`.
2025-03-28 10:24:12 +09:00
Ai-Jani
3dfcef150b refactor: Move action settings UI elements to action-settings.ts
- Moved `chooseKindAndContent`, `chooseKind`, `chooseContent`, `chooseCommandOrFile`, `makeSettingsActionsHeader`, and `makeSettingsActionsList` functions from `src/settings/action-basic.ts` to `src/settings/action-settings.ts`.
- Updated import paths in `src/settings/action-settingsModal.ts` and `src/settings/settingTab.ts` to reflect the change.
- This improves code organization by separating the UI-related logic for action settings into a dedicated file.
2025-03-28 10:11:57 +09:00
Ai-Jani
8d2f4e6222 refactor: Extract action editing logic to action-edit.ts
- Extracted `moveAction`, `toPracticalAction`, `generateCommandCallback`, `generateFileCallback`, `cancelExecute`, and `groupingActions` functions from `src/settings/action-basic.ts` to `src/settings/action-edit.ts`.
- Updated import paths in `src/settings/action-basic.ts` and `src/main.ts` to reflect the change.
- This improves code organization and readability by separating the core action editing logic into a dedicated file.
2025-03-28 09:56:38 +09:00
Ai-Jani
935f241097 refactor: Rename actionSettingsModal.ts
- Renamed `src/settings/actionSettingsModal.ts` to `src/settings/action-settingsModal.ts`.
- Updated import paths in `src/settings/action-basic.ts` to reflect the change.
2025-03-28 09:36:23 +09:00
Ai-Jani
79915d6d38 refactor: Rename action.ts to action-basic.ts
- Renamed `src/settings/action.ts` to `src/settings/action-basic.ts`.
- Updated import paths in `src/settings/actionSettingsModal.ts`, `src/settings/settingTab.ts`, `src/main.ts`, and `src/commons.ts` to reflect the change.
2025-03-28 09:34:45 +09:00
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
Ai-Jani
a423cdedc1 refactor: Improve new tab action button handling
- Refactored the `addButtonsIfNewTab` function to improve its handling of new tab actions.
- Introduced an `addButtonsEventHandler` to filter layout changes and only trigger the action when a new empty view is created.
- Updated the event listener to use the new handler.
- Improved code readability and maintainability.
2025-03-27 13:59:07 +09:00
Ai-Jani
73544b7e35
Merge pull request #6 from Ai-Jani:work
Divide to unsafe.ts / fix "New Tab(s)" to "New tab(s)"
2025-03-26 23:45:56 +09:00
Ai-Jani
7f2e8c9fc0 fix: Correct "New Tab" to "New tab" in UI strings
- Corrected instances of "New Tabs" to "New tab" in various UI strings within the plugin. This includes descriptions in settings, the manifest, and the package.json file.
- Updated the description for the display setting in the action settings modal.
- Corrected a log message in `src/main.ts`.
2025-03-26 23:39:44 +09:00
Ai-Jani
0e4de487b2 refactor: Remove UNSAFE_PROPERTIES and improve type safety
- Removed `UNSAFE_PROPERTIES` constant from `src/unsafe.ts` and updated its usage in `src/settings/action.ts`.
- Directly accessed `app.commands.commands` and `app.commands.executeCommandById` in `src/settings/action.ts` to improve code readability and remove unnecessary indirection.
- Improved type safety by directly accessing `actionListEl` and `emptyTitleEl` properties of `UnsafeEmptyView` in `src/main.ts`.
- Updated references to reflect the changes.
2025-03-26 23:31:48 +09:00
Ai-Jani
2b99176803 refactor: Rename UNSAFE_EMPTY_PROPERTIES to UNSAFE_EMPTY_PROPS
- Renamed `UNSAFE_EMPTY_PROPERTIES` to `UNSAFE_EMPTY_PROPS` in `src/unsafe.ts` and updated its usage in `src/main.ts`.
- Updated references to the renamed constant.
2025-03-26 21:59:04 +09:00
Ai-Jani
c6b40c668c refactor: Rename UNSAFE_EMPTY_VIEW_PROPERTIES and improve typing
- Renamed `UNSAFE_EMPTY_VIEW_PROPERTIES` to `UNSAFE_EMPTY_PROPERTIES` in `src/unsafe.ts` and updated its usage in `src/main.ts`.
- Added `UnsafeEmptyActionListEl` interface to `src/unsafe.ts` to improve type safety.
- Updated type annotations in `src/main.ts` to reflect the changes.
2025-03-26 11:44:45 +09:00
Ai-Jani
9a750335f2 refactor: Divide UNSAFE_EMPTY_VIEW_PROPERTIES in unsafe.ts and update main.ts 2025-03-26 11:17:46 +09:00
Ai-Jani
1303c3df5e refactor: Move unsafe constants to unsafe.ts
- Moved `UNSAFE_PROPERTIES`, `UNSAFE_CSS_CLASSES`, and `UNSAFE_VIEW_TYPES` constants from `src/constants.ts` to `src/unsafe.ts`.
- Updated imports in `src/main.ts` and `src/settings/action.ts` to reflect the change.
2025-03-26 11:08:48 +09:00
Ai-Jani
8a25b58909 refactor: Move unsafe types to unsafe.ts
- Moved `UnsafeEmptyView`, `UnsafeAppCommands`, and `UnsafeApp` types from `src/types.ts` to a new file `src/unsafe.ts`.
- Updated imports in `src/settings/action.ts` and `src/main.ts` to reflect the change.
2025-03-26 11:00:35 +09:00
Ai-Jani
d888d79cc8 refactor: Remove EmptyObjectType and EmptyArrayType
- Removed `EmptyObjectType` and `EmptyArrayType` types from `src/types.ts`. These types were not being used and were unnecessary.
2025-03-26 10:53:41 +09:00
Ai-Jani
c0ccce270f
Merge pull request #5 from Ai-Jani:work
Update README
2025-03-26 10:47:23 +09:00
Ai-Jani
6058120a1e docs: Add ToDo section to README
- Added a "ToDo" section to the README.md file to outline future development tasks, including setting file opening behavior, improving dialog usability, adding a method to display actions on the "New tab", and implementing copy/move action functionality.
- Updated the .gitmessage file to remove the language constraint.
2025-03-26 10:34:30 +09:00