Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Notable changes to Hover Bar, grouped by release.

## 0.1.1 — 2026-10-26

### Changed

- Lower the minimum supported desktop Obsidian version to 1.8.7 after host compatibility validation.
- Use each version's changelog section for GitHub release notes.

### Fixed

- Keep the note picker focused when clicking a result so the selected link is inserted before the picker closes.

## 0.1.0 — 2026-10-24

### Added
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Use Node.js 24, run `npm ci`, then `npm run dev` for a watch build. Start with t

For a production build, run `npm ci` followed by `npm run build`. These developer instructions belong here; the README is written for users installing from Obsidian's community directory.

Obsidian API types are pinned to the minimum supported app version, currently 1.8.7, so type checking catches newer API usage. Verify editor changes in the minimum supported Obsidian app as well as running the automated checks.

## Report a problem

Include the Obsidian and plugin versions, OS, editing mode, theme, a small synthetic Markdown example, reproduction steps, and expected versus actual results. Explain whether the problem reproduces with other community plugins disabled. Never attach private notes, vaults, credentials, or unredacted logs.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Click outside the toolbar or press Esc to close it. For keyboard access, use **S

## Compatibility and limitations

Requires desktop Obsidian **1.14.4 or later**, in Live Preview or Source mode. Reading view and mobile selection menus are not supported.
Requires desktop Obsidian **1.8.7 or later**, in Live Preview or Source mode. Reading view and mobile selection menus are not supported.

Use a single text fragment within one logical line, including text in a heading, list item, or blockquote. Keep structural markers outside your selection. Complex mixed formatting, partial HTML spans, multiple selections, tables, code blocks, math, and frontmatter will not be rewritten. Unsupported actions explain their limitation.

Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

## 兼容性与限制

需要桌面端 Obsidian **1.14.4 或更高版本**,支持实时预览和源码模式。阅读视图与移动端触摸选区不提供工具条。
需要桌面端 Obsidian **1.8.7 或更高版本**,支持实时预览和源码模式。阅读视图与移动端触摸选区不提供工具条。

格式操作支持同一逻辑行中的单一文本片段,包括标题、列表项和引用中的文字;请选择文字内容,不包含结构标记。复杂混合格式、部分 HTML 标签跨度、多选区、表格、代码块、数学公式和 YAML 不直接改写;不可用动作会说明原因。

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"id": "hover-bar",
"name": "Hover Bar",
"version": "0.1.0",
"minAppVersion": "1.14.4",
"version": "0.1.1",
"minAppVersion": "1.8.7",
"description": "Format selected text with a floating toolbar, text colors, highlights, and internal links.",
"author": "gua",
"authorUrl": "https://github.com/saltcoffee",
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hover-bar",
"version": "0.1.0",
"version": "0.1.1",
"description": "Format selected text with a floating toolbar, text colors, highlights, and internal links.",
"type": "module",
"private": true,
Expand Down Expand Up @@ -37,7 +37,7 @@
"@types/node": "26.6.5",
"esbuild": "0.28.2",
"eslint": "10.13.0",
"obsidian": "1.14.4",
"obsidian": "1.8.7",
"typescript": "6.0.3",
"typescript-eslint": "8.72.0",
"vitest": "5.0.5"
Expand Down
4 changes: 3 additions & 1 deletion src/ui/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export class Toolbar {
this.controls.set(key, button); this.bar.append(button);
}
this.root.addEventListener('pointerdown', event => {
if (event.button === 0 && event.composedPath().some(node => (node as HTMLElement).tagName === 'BUTTON')) event.preventDefault();
// Keep focus inside the toolbar until a button or note option handles its click.
if (event.button === 0 && event.composedPath().some(node =>
(node as Element).tagName === 'BUTTON' || (node as Element).getAttribute?.('role') === 'option')) event.preventDefault();
});
this.root.addEventListener('keydown', event => this.onKey(event));
document.body.append(this.root);
Expand Down
4 changes: 2 additions & 2 deletions tests/release.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ beforeEach(() => {
for (const file of ['main.js', 'styles.css', 'LICENSE', 'THIRD_PARTY_NOTICES.md', 'README.md', 'README.zh-CN.md', 'CONTRIBUTING.md']) {
fixture.files.set(file, 'Synthetic release fixture.');
}
json('manifest.json', { id: 'hover-bar', version: '0.1.0', minAppVersion: '1.14.4', isDesktopOnly: true, description: 'Format selected text.' });
json('manifest.json', { id: 'hover-bar', version: '0.1.0', minAppVersion: '1.8.7', isDesktopOnly: true, description: 'Format selected text.' });
json('package.json', { version: '0.1.0' });
json('package-lock.json', { version: '0.1.0', packages: { '': { version: '0.1.0' } } });
json('versions.json', { '0.1.0': '1.14.4' });
json('versions.json', { '0.1.0': '1.8.7' });
fixture.files.set('CHANGELOG.md', '## 0.1.0\n\n- Initial release.\n');
fixture.tree = [...fixture.files.keys()].filter(file => file !== 'main.js');
fixture.head = fixture.tag = '1'.repeat(40);
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"0.1.0": "1.14.4"
"0.1.0": "1.14.4",
"0.1.1": "1.8.7"
}
Loading