Coder Social home page Coder Social logo

obsidian-floating-toc-plugin's People

Contributors

cumany avatar curtgrimes avatar yan42685 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obsidian-floating-toc-plugin's Issues

Feature 2 does not work properly

Feature 2: The table of contents tracks the current scrolling position and highlights it synchronously

does not work properly:

image

My cursor is at ### 4.6.1, whereas the highlight is at ## 4.5.

Support hiding Level 1 heading

I often have level 1 heading like # Title in most notes. Therefore, it would be great if one can choose to disable such level 1 heading in floating TOC.

开启插件后滚动长文章到顶时主界面位置异常

  • 操作系统:win10
  • 主程序版本:v0.15.9
  • 插件版本:2.1.9
  • 问题:
    • 打开插件后,长文章向上滑动到顶时,主界面会异常向上移动(如图);关闭插件后正常;重启插件,重启主程序均无法解决。
    • New_New_New_tmp6E50 New_New_tmpE1FB

另:请问是否能单独选择在移动端关闭插件?如果在插件开关处关闭插件,同步到桌面端时插件也会关闭。是否有办法能在桌面端开启插件并使用,而移动端关闭?谢谢~

TOC的title不能跟随文本滚动。

  1. 添加滚动到哪个heading可以高亮显示选项。

image

  1. 类似sspai网站显示,H2 section,此Heading标签和文本显示,在整个Section内显示,目前发现是顶部出现会促发高亮。

image

  1. 右侧pin模式有点bug,被遮挡了

image

同时发现pin后没显示

image

image

  1. 鼠标放下面的H2有出不来的bug,而且提示的横线和出来的标题位置没有对齐。
    Sep-27-2022 10-13-33
    其他建议。

image

谢谢

Latest update

BRAT is telling me that the update failed as there is no main.js

H1 captions are rendered in triplicate & don't change color

image
The screenshot shows that H1 is rendered in triplicate; the other headings are not.
Furthermore, the text color of the H1 is as in the note text, whereas the other headings' colors are rendered properly.

BTW, version 2.1.5 of the plug-in is awesome!!! You did an amazing job there.

FR: offer the option to change the font size and color

This is a very useful plug-in. Right now the font size is small: 6px, if I am not mistaken. I tried to change it in the styles sheet but it does not work.

It would be useful to have an option to change the font size, perhaps via the Style Settings plug-in?

Also, my H1 has the accent color, my H2 has a different color, my H3-H6 have the text-normal color.

It would be useful to have the option to change to those colors in the floating ToC.

能否在目录上加入文件目录或大纲里一样的层级竖线?

1.能否在目录上,加入文件目录或大纲里一样的层级竖线?这样看得更清晰。
2.以及Style Setting里对floating-toc的设置-外观设置-在指示条旁边显示标题上下级,开启后因为有的标题很长,很容易误触,导致一直打开floatingtoc的栏,能否使其显示出来的字碰到的情况下,不要打开floating-toc?
3.能否选择只显示到第几层标题?(有的时候小标题太多,目录过长)
image
image

Idea - backlinks and outgoing links

IDK but maybe the same functionality for backlinks and outgoing links is possible. Other plugin? On the other side of the page?
Ideas to develop. I love the concept.

是否可以自定义目录宽度

目前标题太长时并且开启单行显示时,会显示省略号,如果标题的前缀相同并且很长,就无法区分标题。是否可以自定义宽度,或者自适应宽度,或者鼠标 hover 上去显示完整标题

注意:插件id 已从obsidian-floating-toc 修改为了 floating-toc

If the name of your plugin is “obsidian-floating-toc” you need to uninstall and reinstall the new version for it to work properly.
The correct name of the plugin should be "floating toc"


根据官方审核插件的建议,插件id已修改为 floating-toc

如果是第一次安装本插件,可以忽略本次建议。

如果之前安装过过本插件,请继续阅读下面内容。

受此影响,插件列表中可能会存在一个重复插件obsidian-floating-toc
直接删除重复插件,再重新安装新的即可。

发现两个问题

  1. 希望给Pin功能加个快捷键
    如果目录太长,加上动画效果可能会使点击专用按钮变得困难,除非能很快又很精准的点到按钮

  2. 浮动目录显示位置选择在右边之后,用pin固定且会超出编辑区(看不见)

Unable to install on Obsidian Mobile

Hi Developer!

Thanks for this great plugin,
I have successfully installed the PC version and wondering if it is also possible install it on mobile?

Thanks!

Feature Request: Adjusting indentation level

Hi, amazing plugin that addresses a burning need when I moved from Logseq. Can't say how grateful I am and how beautiful and customizable the interface is. Thank you so so much!

My feature request is if you could add a setting in Style Setting plugin that allows increasing the indentation between heading levels. Currently it's a bit hard to discern different heading levels, especially when the TOC gets complicated with various levels.

image

Visual bug with vim panel

Thanks so much for reviving this plugin. Haven't noticed it before, it's a real hidden gem.

I noticed a minor visual issue, when floating toc is activated, it push the whole editor to the right. This creates the gap here with the vim panel (only visible when using / or : in vim mode).

image

This css-snippet here fixes the issue, however, I don't know whether this is a good solution, since it kinda only treats the symptom instead of the cause (therefore not making a PR.)

.floating-toc-div + .markdown-source-view .cm-panels {
	position: absolute;
}

鼠标靠近左边会点击不到文字

在开启floating toc后,当内容区宽度比较窄的时候,鼠标靠近左边会点击不到文字,估计是碰到了插件的范围,个人建议把目录的边缘范围缩小一点,不用覆盖到笔记页面上,就在那几根TOC线上就行。
谢谢大佬辛苦付出!

Console 'errors'

First off -- many thanks for making this work. Love it. It is working fine for me in practice, but I am getting a lot of errors (in the hundreds this morning) reported in the 'inspector'. I'm not worried (I don’t know what they mean, and as I say, the plugin is doing what I want it to). I thought you might want to know about these things...
This is what I get in the console:
36 plugin:obsidian-floating-toc:6565 Uncaught TypeError: Cannot read properties of undefined (reading 'contains')
at HTMLDocument._handleScroll (plugin:obsidian-floating-toc:6565:29)
at s (app.js:1:265322)
at l (app.js:1:265428)

调整toc位置

感觉 toc 位置靠得太上了,想移到中间位置,请问可以加一个设置纵向位置的选项么,或者 直接代码修改一下。

谢谢

CSS code to render H1 headings as capitals

For the H1 headings in the main text I use:

/* Automatically convert H1 headings to capitals in text */
.cm-header-1, .markdown-preview-view h1 {
    text-transform: uppercase;
}

Is it possible to get the same in the floating toc?

Note text blur

When you have narrow panels the toc and document text get mixed up and look a bit off.
I don't know if it's possible, but it would be interesting an option so that the text of the note fades when activating the toc.

image

image

Plugin isn't showing up in Style Settings

Hi, I'd like to change the color of the TOC, but the plugin isn't showing up in the style settings. I've turned both the plugin and style settings off and on again several times.

Any ideas? thanks!

Bug: some display issues

Thank you for the excellent plugin! I've encountered several issues.

Display issues

  1. When floating toc displays on the right, the levels of the titles don't display correctly. There's no indent on the right, so it's hard to recognize different levels of titles. Here're pictures below.
    image image

  2. Sometimes the indicator bars display like dots, I think it's not normal. It seems to occur when floating toc is set to display on the left. I didn't see that when floating toc was on the right.
    image

  3. When I enabled text blur function, the text in reading mode didn't blur at all. So if the function only acts on preview view mode?

Suggestion

  1. I find that there is space which is a little wide to keep floating toc hover effect. Sometimes I may click on the title wrongly. So if it is OK to narrow the space or just adjust the space by the longest tile length?
    image

idea- make the TOC always visible

Hello, I love your plugin, is really something i wanted. Could be possible to make always seen the text? A toggle on top of the TOC maybe?

[FR] 能否使大纲自动缩进屏幕边界, 然后鼠标移至边界将之弹出显示

目前我是将大纲停靠在屏幕右侧. 如果能让它自动收进去不显示, 然后鼠标挪移过去才触发将之唤出, (亦即始终保持pin状态的缩入与浮出), 那就更完美了.
另外建议根据最长标题自适应调整大纲宽度(类似#37), 如图开启背景模糊, 可以看到, 即便标题很短, 大纲也占据了不小的宽度. 感谢.
image

Feature Quest:set deflaut TOC level

  • Feature Quest:

Set deflaut TOC level in setup menu,and expand TOC when needed,as below.
希望设置中能够选择默认的大纲显示级别,并且在需要时能展开,如下图。
image

  • Reason

Sometime TOC is too long, it's easy to active it in accident. It seems limit the height of TOC works too. But it's still hard to find target heading.
缘由是:长文TOC过长,无论放在左侧还是右侧,不小心碰到即误触的频率都很高。限制TOC的显示高度或许也行。但TOC过长也会导致很难找到想要的标题。
image

How to install the plugin ?能不能给个一步一步的安装指引?

我虽然知道应该把文件拷贝到plugins目录下面去,但是我实在不太明白在这里需要下载哪些文件,文件夹名字要叫什么。我的感觉大概是要先安装原来的插件,再从这里下载新的文件覆盖上去,到底对不对不知道没有说明现在只能靠猜。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.