Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wish5115 committed Jun 21, 2024
0 parents commit bca96fb
Show file tree
Hide file tree
Showing 15 changed files with 948 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release Obsidian plugin

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# vscode
.vscode
.history

# Intellij
*.iml
.idea

# npm
node_modules

# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.

# Exclude sourcemaps
*.map

# obsidian
data.json

# git
.git

# Exclude macOS Finder (System Explorer) View States
.DS_Store
.history
main_副本.js
main-no-market.js
styles-no-market.css
Empty file added .hotreload
Empty file.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 wish5115

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
50 changes: 50 additions & 0 deletions README-zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 介绍

打开悬浮设置面板或替换默认的设置窗口为悬浮面板。依赖于Hover Editor插件。

# 使用场景

当你需要设置某个样式或功能而需要频繁打开设置窗口时,这将非常有用。

# 特色

- 设置窗口可以悬浮打开,取消modal模式。

- 系统设置面板和悬浮设置面板可以共存,不相互影响。

- 可以打开多个插件市场面板。

- 左侧面板可隐藏或显示,选中标签自动滚动到可视窗口内。

# 安装

到这里下载 [Floating Settings](https://github.com/wish5115/obsidian-floating-settings/releases/)

下载后把 obsidian-floating-settings.zip 解压,放到插件目录,重启 obsidian,然后别忘了到设置里开启插件即可。

亦可在obsidian的插件市场中搜索安装。(暂未上架)


# 使用

1. `ctrl+p` to open the command panel, select the command "Open Hover Settings".

2. If "Replace the Default Settings" is checked in Settings, you can also turn it on via the Settings button in the bottom left corner.

# 截图

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/zh-preview.png)

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/zh-market.png)

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/zh-demo.gif)


# 反馈

您有任何问题都可以到 [issues](https://github.com/wish5115/obsidian-floating-settings/issues) 去反馈。


# 鸣谢

灵感来自于:@knight 大佬的回复 参见 [设置的窗口 怎么悬浮?](https://forum-zh.obsidian.md/t/topic/35799/19)
56 changes: 56 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Obsidian Open in Top Window

[中文帮助](https://github.com/wish5115/obsidian-floating-settings/blob/main/README-zh.md)

# Introduction

Open the Floating Settings panel or replace the default settings modal with a floating panel. Depends on the Hover Editor plugin.

# Usage Scenarios

This is useful when you need to set a certain style or feature and need to open the settings modal frequently.

# Features

- Settings window can be opened on hover and modal mode can be canceled.

- System settings panel and hover settings panel can coexist without affecting each other.

- Multiple plugin market panels can be opened.

- The left panel can be hidden or shown. Selected tabs automatically scroll to the visible window.

# Installation

Go here to download [Floating Settings](https://github.com/wish5115/obsidian-floating-settings/releases/)

After download, unzip obsidian-floating-settings.zip, put it into plugin directory, restart obsidian, and don't forget to open the plugin in settings.

You can also search and install the plugin in obsidian's plugin market. (Not yet available)


# Use

1. Right click menu to open, select "Open the Floating Settings".

2. Command to open, select "Open current tab in top window" or "Move current tab to top window".


# Screenshot

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/en-preview.png)

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/en-market.png)

![](https://cdn.jsdelivr.net/gh/wish5115/obsidian-floating-settings@main/screenshots/en-demopng)


# Feedback

You can go to [issues](https://github.com/wish5115/obsidian-floating-settings/issues) to give feedback if you have any questions.


# Acknowledgments

Inspired by: reply from @knight mogul. See [设置的窗口 怎么悬浮?](https://forum-zh.obsidian.md/t/topic/35799/19)

Loading

0 comments on commit bca96fb

Please sign in to comment.