Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化文件树文件定位 #936

Closed
wo4wangle opened this issue Jan 5, 2021 · 0 comments
Closed

优化文件树文件定位 #936

wo4wangle opened this issue Jan 5, 2021 · 0 comments
Assignees
Milestone

Comments

@wo4wangle
Copy link

描述问题 Describe the problem

切换编辑文件时候,文件树会自动定位到当前文件所在文件树的位置
但文件树对当前文件动态定位不好:
如图,我看不到定位的文件名,只能看到下方的灰色背景
文件树定位问题

期待的结果 Expected result

不是所有时候都如此,而是文件的动态定位在用户看来逻辑不清晰
能够有一个更一致的定位逻辑

定位文件位子的目的是了解文件所在上下文情况,并方便操作文件文件上下文
基于这个目的,文件的定位应该是更好的显示上下文
而上下文一般一样重要,基于公平的策略,最好的显示是:上文和下方显示一样多
即:定位的文件显示在文件树视图的中央部分

边界case:文件无法定位到文件树视图的中央
比如:文件树第一个或最后一个文件

边界case解决:判断出无法显示在中央部分,就让不够的一方显示全面
比如:倒数第三个文件,无法显示在中央部分
因为视图高度固定,而下方能显示的文件不够,那么就把下方显示全

版本环境 Version environment

  • 版本 Version:0.56Alpha1和以前
  • 操作系统 Operating system:win10
  • 浏览器(如果使用)Browser (if used):

更多信息 More information

文件自定义排序功能继续叫个号:让文件树有更好的描述能力,定位过去也能看到有更多含义的上下文

@88250 88250 changed the title 文件树对当前文件动态定位不准确 优化文件树文件定位 Jan 5, 2021
@88250 88250 added this to the 0.5.7 milestone Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants