Coder Social home page Coder Social logo

thief-book-vscode's Introduction

Thief Book

一个摸鱼看书神器

安装

PC版本

更加隐蔽功能更加丰富:https://github.com/cteams/Thief-Book

默认配置

需要填写 TXT小说 路径才可以使用此插件

  • 当前页数:1
  • 每页长度:50
  • 是否为英文:false 如果是英文小说,请勾选
  • 换行分隔符号:一个空格
  • TXT绝对路径:空

路径格式

  • Mac or Linux : /opt/test/name.txt
  • Win : C:\\Users\\Administrator\\Desktop\\name.txt or C:/Users/Administrator/Desktop/name.txt

快捷键

没有设置TXT小说的本地绝对路径,会报错,会提示设置路径

MAC

Cmd+M 老板键 。 随机显示不同语言的 Hello World ,随时可用

Cmd+, 上一页 。 文本聚焦(编辑代码)的时候,才可以使用

Cmd+. 下一页 。 文本聚焦(编辑代码)的时候,才可以使用

Cmd+; 跳转 。 文本聚焦(编辑代码)的时候,需要设置跳转页面,才可以使用

WIN

Ctrl+M 老板键 。 随机显示不同语言的 Hello World ,随时可用

Ctrl+Alt+, 上一页 。 文本聚焦(编辑代码)的时候,才可以使用

Ctrl+Alt+. 下一页 。 文本聚焦(编辑代码)的时候,才可以使用

Ctrl+Alt+; 跳转 。 文本聚焦(编辑代码)的时候,需要设置跳转页面,才可以使用

修改快捷键


A fishing and reading magic weapon

Install

PC

https://github.com/cteams/Thief-Book

Default configuration

You need to fill in the TXT novel path to use this plug-in

  • Current Page: 1
  • Length per page: 50
  • Is English:false If it's an English novel, please check it out.
  • Line Break Separation Symbol:A space
  • TXT Absolute Path: null

Path format

  • Mac or Linux : /opt/test/name.txt
  • Win : C:\\Users\\Administrator\\Desktop\\name.txt or C:/Users/Administrator/Desktop/name.txt

Shortcut keys

If there is no absolute local path for TXT fiction, errors will be reported and paths will be prompted.

MAC

Cmd+M Boss key. randomly displays Hello World in different languages , Available at any time

Cmd+, Previous page. When text is focused (editing code) , Only then can it be used

Cmd+. Next page . When text is focused (editing code) , Only then can it be used

Cmd+; Jump page . When focusing on text (editing code), jump pages need to be set before you can use them

WIN

Ctrl+M Boss key. randomly displays Hello World in different languages , Available at any time

Ctrl+Alt+, Previous page. When text is focused (editing code) , Only then can it be used

Ctrl+Alt+. Next page . When text is focused (editing code) , Only then can it be used

Ctrl+Alt+; Jump page . When focusing on text (editing code), jump pages need to be set before you can use them

Update Shortcut keys

Enjoy!

thief-book-vscode's People

Contributors

sanjinhub 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  avatar  avatar  avatar

thief-book-vscode's Issues

可以使用python的pynput 监听鼠标 这样就不用每次按组合按键了 通过鼠标左键 下一页 右键关闭

import pynput
from pynput.keyboard import Controller, Key, Listener
from pynput.mouse import Button

def on_click(x, y, button, pressed):
# 实例化键盘
kb = Controller()

# 使用键盘输入一个字母
kb.press(Key.ctrl)
kb.press(Key.alt)
kb.press('.')
kb.release(Key.ctrl)
kb.release(Key.alt)
kb.release('.')
kb.pressed(Key.ctrl,Key.alt,'.')
if button == Button.right:
    print("关闭")
    return False

with pynput.mouse.Listener(
on_click=on_click,) as listener:
listener.join()

一行长度的设置 摸鱼区域占状态栏宽度的设置

Snipaste_2020-07-27_07-57-57
如图所示 我要是翻一下 上下文完全是接不起来的
而且状态栏这么大 就占了一小块有点浪费吧
希望可以根据实际摸鱼区域大小自动调整"一行"的长短
并且可以根据状态栏剩余区域大小扩展摸鱼区域

Mac-文字乱码

Version: 1.40.2
Commit: f359dd69833dd8800b54d458f6d37ab7c78df520
Date: 2019-11-25T14:52:45.129Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.0.0

文字是乱码,路径应该是正确的

能提供一些小说的txt吗

我不知道上哪找txt哇,那些小说网站都不让下载,好烦...
要是插件自带一些小说就棒棒了

VScode版本无法打开小说和翻页

VScode版本1.39
插件版本0.0.9
可以呼出老板键使用内容
使用翻页键时提示错误信息 Running the contributed command: 'extension.getNextPage' failed.

建议添加个文件编码的配置项

image
默认是utf-8编码,实测win10下打开gb2312文件是乱码,直接改vscode的文件编码配置也不行,得转成utf-8编码就能正常显示了

当前页码配置项一直变动同步设置的插件会干扰状态栏的提示

我用了同步设置的插件,但是这个插件会在同步设置的时候也在状态栏提示,能否不要在有当前页码这个配置项?将它记录在其他地方。同时能否实现搜索跳转功能呢?非常喜欢这个插件,能够尝试改成读取epub小说然后可以选择目录呢?这样我感觉很方便。另外感觉替换掉换行有点别扭唉。非常感觉作者的摸鱼插件,支持作者!

libva error: /usr/lib/dri/i965_drv_video.so init failed

报错信息:
Uncaught Exception:
Error: Cannot find module '/tmp/.mount_thief-JLOgUA/resources/app.asar/node_modules/iohook/builds/electron-v87-linux-x64/build/Release/iohook.node'
Require stack:

  • /tmp/.mount_thief-JLOgUA/resources/app.asar/node_modules/iohook/index.js
  • /tmp/.mount_thief-JLOgUA/resources/app.asar/dist/electron/main.compiled.jsc
  • /tmp/.mount_thief-JLOgUA/resources/app.asar/dist/electron/main.js

at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:261:1128)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (/tmp/.mount_thief-JLOgUA/resources/app.asar/node_modules/iohook/index.js:24:21)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
at Module.load (internal/modules/cjs/loader.js:935:32)
libva error: /usr/lib/dri/i965_drv_video.so init failed

网页模式不是很好用

除了“C”等按键的快捷键不便以外
期望:
0. 可以手动调整窗口大小

  1. 增加浏览器后退功能

BUG:
0. 网页上有些超链接点击无法跳转

  1. 搜索框快捷键隐藏后 有时无法再唤醒 搜索框出现后 也会出现无法再次搜索问题

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.