hypertrons / hypertrons-crx

A browser extension for insights into GitHub, Gitee projects and developers.
https://hypercrx.cn
Apache License 2.0
357 stars 103 forks source link

[Feature] Optimize user experience of FastPR #905

Open frank-zsy opened 2 weeks ago

frank-zsy commented 2 weeks ago

Description

Enhance the user experience of the FastPR feature:

wangyantong2000 commented 2 weeks ago
  • When a user selects a portion of text with their mouse, move the button to launch the editor near the selected text to facilitate quick access to the editor.
image

Is this expected to achieve a similar effect, or does it mean something else.

frank-zsy commented 2 weeks ago

Yes, this is exactly what I mean~

wangyantong2000 commented 2 weeks ago

For the second point, how to adjust the position of the navigation bar for the content in the stackdit. There is no similar functionality in the stackdit API. If scrolling through stackdit to control page sliding, there is still a cross domain issue.

image image image
frank-zsy commented 2 weeks ago

I just assume this will be quite helpful for long document but I am not sure this is feasible or not. I need do some experiment first and I think this may involve some hacking into StackEdit source code.

frank-zsy commented 2 weeks ago

I can not find any method to do this neither so I opened an issue on StackEdit GitHub, but don't count on it because the project is not active for a long time. I think we can hold the issue and wait for a response. https://github.com/benweet/stackedit/issues/1856

wangyantong2000 commented 1 week ago
截屏2024-11-11 18 52 11

One more thing to add is the initial position of the button. Is the initial position reflected in the configuration file or elsewhere? Add a return item in the configuration file that represents several common positions such as top, bottom, left, right, bottom right, top right, etc

frank-zsy commented 1 week ago

@wangyantong2000 Yes, the initial button position is very important, it should be in the config file. We can use common positions instead of x, y position numbers, this will be quite friendly for config. This could be a new issue.