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

改善模糊搜索逻辑,以及一些小的 Bug 修复和小功能的添加 #862

Merged
merged 121 commits into from
Aug 26, 2020
Merged

改善模糊搜索逻辑,以及一些小的 Bug 修复和小功能的添加 #862

merged 121 commits into from
Aug 26, 2020

Conversation

tonyfettes
Copy link
Contributor

@tonyfettes tonyfettes commented Aug 23, 2020

#858 引入的模糊搜索的逻辑有点问题,本 PR 修改后模糊搜索的行为表现为

  1. 不允许嵌套模糊搜索。
  2. p 时会跳转到到被搜索歌单对应的歌曲处,而不是最近一次的搜索结果。

本 PR 还修复了一些小的 Bug,添加了一些小的 Feature。

修复的 Bug :

  1. 20 分钟后需要更新歌曲 url 时候会弹出两条一模一样的消息。
  2. 配置文件中 page_length 的选项指定的行为(每页条目数)会被忽略,导致程序始终表现为根据终端尺寸自适应调节的行为
  3. 增加当前列表模糊搜索,修复连续跳转Bug #858 中重写歌词更新的逻辑后,出现的歌词时间顺序错位的现象
  4. 修正滚动字符串的滚动速度(原来是非 ASCII 一次滚 3 个,ASCII 一次滚一个,现在是非 ASCII 一次滚 1 个,ASCII 一次滚两个)
  5. pip 依赖没有即时更新的问题 archlinux kde 和 i3 下的问题 #861
  6. - 程序崩溃
  7. 切歌耗时会逐渐变长
  8. 20 min 歌曲刷新 url 后播放/暂停状态会显示错误

添加的功能:

  1. 可在配置文件中自定义的左右对齐的宽度
  2. 根据终端尺寸自动调整长度的进度条

改变的应用程序行为:

  1. 评论区添加光标所在处的评论显示
  2. 在非单曲循环的情况下遇到版权问题自动播放下一首,而不是目前的停止播放

是 Bug 但是目前不打算修:

  1. (不合理的行为)切换到版权问题歌曲时进度条和歌词显示位置不为开头。(不修的原因:对于无法播放的歌曲播放的信息是没有意义的,目前这个问题可能既不紧急也不重要)

2. A possible fix to a possible bug: when fetch the version info
   sometimes one of latest and version will be 'int'
3. self.margin -> self.left_margin_ratio
1. Add right margin to menu and playinfo
2. adjust scrolling speed of the string
1. Fix the bug that behavior set by "page_length" will be override as auto adjusted.
2. make the comment section with right margin.
1. Set the classifier natural language in setup.py from English to
   Chinese (Simplified).
2. Use <kbd> label to wrap the shortcut key in README.md
3. Add description to num + key
4. Add bug report for fuzzy search
1. Set the classifier natural language in setup.py from English to
   Chinese (Simplified).
2. Use <kbd> label to warp the shortcut key in README.md.
3. Add description to num + key.
4. Add bug report for fuzzy search.
Now the wrapped fuzzy search is disabled.
1. Remove problem & solution 858.
2. Make number key instructions more clear.
3. The path of log file should now obey XDG standard.
@kigawas kigawas self-requested a review August 24, 2020 04:23
@tonyfettes tonyfettes marked this pull request as ready for review August 25, 2020 15:15
@kigawas kigawas merged commit d0f6ddf into darknessomi:master Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants