Repository navigation
感谢你创造了这个作品!然后是一份评测报告 | Thank you for creating this piece! What follows is an experience report. #7
Replies: 4 comments
|
非常感谢你送出的第一个 star,也由衷感谢你对 Flowie 的深度使用和这份极其用心的评测报告——看到竟然是用 Flowie 亲自写完的,还收到这么高质量的评价,我整个人瞬间心情大好! 你提到的每一条建议都非常切中要害,尤其是帮我做了这些非常关键、但我之前一直缺失的极端场景与边缘性能测试(大文档长滚动、多遍 MobyDick / 100MB Markdown 压测、清空回收站后的 SQLite 体积与内存占用)。连长文档滚动的估算高度 + 树状数组方案都亲自验证并测出了 CPU 数据,真的帮了大忙! 关于拆分 Issue:麻烦你辛苦写这么长已经很不好意思了,不用再折腾拆分,我这边已经把你报告里的所有问题和想法都整理记录下来,接下来会陆续建好 Issue 逐个解决:
再次感谢你的认可和宝贵反馈!我会继续打磨,争取把 Flowie 做成心目中最理想的大纲编辑器。后面使用中遇到任何问题或新想法,也随时欢迎来聊 :D |
|
感谢这么细致的评测!这份报告里的问题大多已经在 [Flowie 1.0.1](https://github.com/wesleyel/flowie/releases/tag/v1.0.1) 里修好了,每一项都开了 issue 跟进。 Important 从 1.0 候选版(rc)升级的话,请先导出备份,再更新。 在首页取消选区,用「文件 → 导出为 OPML」导出整个大纲(有图片的分支,选中后导出为
Thanks for such a thorough review! Most of it is fixed in [Flowie 1.0.1](https://github.com/wesleyel/flowie/releases/tag/v1.0.1), with an issue for each item (#11–#19). |
|
@zxhd863943427 补充一个后续改进: 之前 #14 把正文(Paragraph)节点改成按一次回车就新建下一个正文节点,但这样会让正文节点内部无法换行。现在已经进一步优化:
A quick follow-up on paragraph nodes: Making Enter immediately create a new paragraph (#14) meant you could no longer insert a line break inside a paragraph. This is now improved:
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
很高兴在翻reddit的PKMS Self promotion thread找到了这个项目,有一种垃圾桶出金的感觉。同时满足了windows、大纲编辑器、富文本、非elecron的不可能四角。颜值上完全就是我的好球区,极简风格,甚至在内存控制上也非常出色。裸机内存占用在19mb左右,基本就已经是GUI应用的内存下限了。考虑到目前的windows支持水平不错,或许可以考虑下修改readme了?总的来说,这是一个非常优秀的软件,完全达到了一流水平的大纲编辑器。感谢你创造了这个作品。真没有想到是轮到我来首 star :>
然后以下是一份评测报告。
尝试导入bike的测试用OMPL,导入毫无压力,立刻就完成了。不过存在以下现象:
采用的是分段加载的形式,没法一次性滚动到底部。我按下键按了好久才达到底部,这时候的内存占用也才60mb左右,很不错的,而且这时候就能完整滚动了。
https://www.cnblogs.com/liaocheng/p/6182976.html
删除文献后,并且在废纸篓里彻底删除,但是sqlite数据库的大小没变,上网搜索了一下,应该是没执行
vacuum;的原因,我手动执行了一下,体积就缩回去了尝试导入了5遍bike的MobyDick.opml,内存基本不变,但是全部关闭,然后再使用ctrl+0全部展开,内存就会增加到200mb,此后再关闭,内存也没有减少。可能有一点内存泄漏?使用codex进行分析,表示可能是在内存中保留了完整的撤销栈的原因。
在导入了一下我手上的另一个压力测试文件,维基语料,一个100mb的md,导入结果有点绷不住。
###,然后标题下面的内容变成的节点的备注 #希望改进点击标题的节点后,备注很长,但是没法滚动。绷不住了,大概一开始也没想到会产生这种情况吧
最后一行消失问题 #希望改进
然后是一个比较微妙的情况,目前在最后一行按
enter回车,新建的一行会直接消失在窗口下,而不是窗口自动滚动,还得自己滚上来。正文类型节点enter后新建节点不会变成正文节点 #希望改进
在我看来正文节点 enter 后新建的节点应该也是正文才对吧?就像有序列表节点一样。
过滤后复制问题 #希望改进 #bug
还有一个比较神奇的bug,使用搜索过滤后进行复制,实际上是会把同级的节点也复制过来的。比如说上面的
内存暴涨到 555 mb……这个节点,明明没有#希望改进的标签,但还是被复制出去了。代码块粘贴问题 #希望改进 #bug
目前实际上没法粘贴代码到代码块里,因为多行代码会直接被识别和转换成多个节点了。
然后是一些许愿环节:
、符号当成/来进行控制节点类型,不然频繁切换中英文输入法还是有点麻烦的。接着是对大型文档滚动问题的尝试AI改进:
根据AI分析,当前已经是一次性将内容读入内存的了,所以逐渐出现并不是来自于数据库读取,而是因为将未加载节点的高度设置为0,然后滚动才会实际测量高度并体现在滚动条中。因此也存在两种解决方法。
根据每个节点的文字长度、字符类型、字号、缩进、备注,以及窗口可用宽度,估计换行后的高度。不会提前把所有节点完整排版。
用树状数组保存这些估计值。拖到 50% 时,查找“累计估计高度达到一半”的节点。浏览过程中,GPUI 测出更多真实高度,也不会改变这份映射;一次拖动期间还会固定索引快照。
GPUI 只渲染目标附近的节点。如果目标落在某个长段落内部,会先测量该段落,再按段内比例调整位置。例如目标在该段落的 60%,就定位到真实高度的约 60%。
编辑单个节点通常只更新这一项;窗口宽度、展开结构、页面或搜索结果变化时重建。普通滚动不会重建整篇索引。
以上方法均在本地使用codex尝试复现,确实可行,不过本人对rust仅限于会看会写,AI的代码也不太好提交,所以就提供个思路吧。
然后,以上内容均使用 flowie 撰写,只是为了适应GitHub的内容做了些格式调整。
为了完整所以发布到 discussions ,如果觉得这里面提到的有必要,我也可以拆分为issue分别提交到bug和feature里。最后,再次感谢你创造了这个作品!
I'm very glad to have found this project in the PKMS self-promotion thread on Reddit—it feels like striking gold in a trash bin. It simultaneously satisfies the impossible four-corner combination of Windows, outliner editor, rich text, and non-Electron. Aesthetically, it's completely in my sweet spot—minimalist style—and it's even excellent at memory control. Bare-metal memory usage is around 19 MB, which is basically the lower limit for a GUI application. Considering the current level of Windows support is quite good, maybe you could consider updating the readme? Overall, this is a very excellent piece of software, fully reaching first-class outliner editor standards. Thank you for creating this work.
Below is a review report.
I tried importing Bike's test OMPL file, and the import was effortless—it completed immediately. However, the following issues exist:
It uses segmented loading, so it can't scroll to the bottom in one go. I had to hold down the key for a long time to reach the bottom. At that point, memory usage was only around 60 MB, which is quite good, and at that point it could scroll fully.
https://www.cnblogs.com/liaocheng/p/6182976.html
After deleting documents and then permanently deleting them from the trash, the SQLite database size didn't change. I searched online and it seems the reason is that
vacuum;wasn't executed. I manually executed it, and the size shrank back.I tried importing Bike's MobyDick.opml 5 times, and memory basically didn't change. But after closing everything and then using Ctrl+0 to expand all, memory increased to 200 MB. After closing again, memory didn't decrease. There might be a slight memory leak? Using Codex for analysis, it suggested the cause might be that the complete undo stack is being retained in memory.
After importing another stress-test file I had on hand—a Wikipedia corpus, a 100 MB markdown file—the import result was a bit hard to handle.
###, and the content under the headings became the node's notes #wish-to-improveAfter clicking a heading node, the note is very long but can't be scrolled. I couldn't help but laugh—probably nobody anticipated this situation in the first place.
Last line disappearing issue #wish-to-improve
Then there's a rather subtle situation: currently, when pressing
enteron the last line, the newly created line directly disappears below the window instead of the window automatically scrolling, so you have to scroll up yourself.New node after Enter on a body-text node doesn't become a body-text node #wish-to-improve
In my view, after pressing Enter on a body-text node, the newly created node should also be body text, right? Just like ordered-list nodes.
Copy issue after filtering #wish-to-improve #bug
There's also a rather magical bug: after using search filtering and then copying, sibling nodes are actually copied as well. For example, the node above,
Memory surged to 555 MB..., clearly doesn't have the#wish-to-improvetag, but it was still copied.Code block paste issue #wish-to-improve #bug
Currently, it's actually impossible to paste code into a code block, because multi-line code is directly recognized and converted into multiple nodes.
Then some wishlist items:
、symbol can be directly recognized as/for controlling node types; otherwise, frequently switching between Chinese and English input methods is a bit troublesome.Next, my attempt at AI-assisted improvement of the large-document scrolling issue:
According to AI analysis, the content is currently read into memory all at once, so the gradual appearance doesn't come from database reading, but rather because the height of unloaded nodes is set to 0, and only when scrolling does it actually measure the height and reflect it in the scrollbar. Therefore, there are also two possible solutions.
Based on each node's text length, character type, font size, indentation, notes, and available window width, estimate the height after line wrapping. It doesn't fully lay out all nodes in advance.
Use a Fenwick tree to store these estimates. When dragging to 50%, find the node whose "cumulative estimated height reaches half." During browsing, even if GPUI measures more real heights, this mapping won't change; during a single drag, an index snapshot is also fixed.
GPUI only renders nodes near the target. If the target falls inside a long paragraph, it first measures that paragraph, then adjusts the position according to the proportion within the paragraph. For example, if the target is at 60% of that paragraph, it positions to about 60% of the real height.
Editing a single node usually only updates that item; when window width, expanded structure, pages, or search results change, rebuild. Ordinary scrolling does not rebuild the entire index.
The above methods were all attempted locally with Codex to reproduce, and they are indeed feasible. However, my Rust is limited to being able to read and write it, and the AI's code isn't easy to submit, so I'm just providing an idea.
Also, the above content was all written using flowie, with only some formatting adjustments made to fit GitHub content.
For completeness, I'm posting this to discussions. If you think anything mentioned here is necessary, I can also split it into issues and submit them separately to bug and feature. Finally, thank you again for creating this work!
All reactions