[ Content contribution] 水谈·很不错的剪贴板历史分析工具
Tofloor
poster avatar
魔法师
deepin
2024-07-17 23:31
Author

引子:临时场景,突然需要一个可以持续性提供历史记录的剪贴板数据

最近在记录一篇有着几百个数据表格的 word 文档,文档有几个,由于 word 的一些特性,无法直接在线查看。

我从 word 里面截图复制表格信息、粘贴到在线版本的 Markdown 编辑器中,并在之后给相应的代码开发点上使用注释来标注函数对应的文档的位置及编号,而此时也意识到这数百个表格描述的文档描绘出的整体计划,但是在这里,我遇到了一些困难。

因为表格数量的庞大,我截取一个表格,粘贴到在线 Markdown 中,需要不停的切换程序,如同系统中的上下文切换一样,我时刻需要忍受一些复制粘贴上的精确定位、切换程序、截图响应的问题。

临时写了一个剪贴板历史记录软件,并为其设计出简单易的操作,截图时将自动在面板中记录一条数据,复制文字时也自动在面板中记录一条数据,同样的文字内容在瞬间不小心多次复制时,不进行记录。

工具开发完成后,我先是连续截取了 word 中 10 个左右的表格,然后切换到在线 Markdown 编辑器中(这个编辑器就像是深度发贴的这种编辑器),很快,我就粘贴完成并创建好了二级标题的编号,然后回过头去继续截取10个、20个截图,再回过来粘贴到在线编辑器中,不一会,我就完成几十个表格了。

另外,有时候,我会直接打开这个工具,让其自动记录我近一段时间(几十分钟)内的复制行为,然后有空的时候回头看看(就像看聊天记录一样),我发现我复制的内容还挺多,看来 ctrl+c ctrl+v 是每个人的日用操作啊~

录屏_选择区域_20240717232619.gif

  • 仓库

    https://gitee.com/zinface/qt.clipboard-history-analyzer

  • 构建,并直接安装它(可选)

    # 以下是克隆并打包(deb) 
    git clone https://gitee.com/zinface/qt.clipboard-history-analyzer
    cd qt.clipboard-history-analyzer
    make package  
    
    # 以下是直接运行它 
    make run  
    
    # 以下是安装它 
    sudo dpkg -i build/*.deb
    

另外 COPY 操作可以将选中的项数据复制到剪贴板中,而这个操作将不会创建复制记录

Reply Favorite View the author
All Replies
魔法师
deepin
2024-07-17 23:39
#1

假如有一天,小家伙可以上网,与其它机器一起协作,那是不是这个剪贴板可能直接变成共享的了(
pride

Reply View the author
花雨落逝
Moderator
2024-07-17 23:51
#2
魔法师

假如有一天,小家伙可以上网,与其它机器一起协作,那是不是这个剪贴板可能直接变成共享的了(
pride

闪电藤已经实现了广域网剪贴板共享了

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-07-18 01:46
#3

make的时候报错了


FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.env/cmake/SparkEnvConfig.cmake
FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.macros/cmake/SparkMacrosConfig.cmake
FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.find-qt5/cmake/SparkFindQt5Config.cmake
CMake Error at cmake/_spark/spark.find-qt5/cmake/SparkFindQt5Config.cmake:8 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has      
  asked CMake to find a package configuration file provided by "Qt5", but     
  CMake did not find one.                                                     
                                                                              
  Could not find a package configuration file provided by "Qt5" with any of   
  the following names:                                                        
                                                                              
    Qt5Config.cmake                                                           
    qt5-config.cmake                                                          
                                                                              
  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"  
  to a directory containing one of the above files.  If "Qt5" provides a      
  separate development package or SDK, be sure it has been installed.         
Call Stack (most recent call first):                                          
  cmake/SparkWithGit.cmake:57 (include)                                       
  cmake/SparkWithGit.cmake:98 (spark_include)                                 
  CMakeLists.txt:7 (spark_initialize_modules)                                 
                                                                              
                                                                              
-- Configuring incomplete, errors occurred!
make: *** [Makefile:27:release] 错误 1

很棒的工具,之前一直想找这样一个工具没想到有大佬实现了,
不知道能不能一次性选择多个历史粘贴出来呢?

Reply View the author
sammy-621
deepin
2024-07-18 08:43
#4

非常不错,收了

Reply View the author
魔法师
deepin
2024-07-18 09:19
#5
把一切操作变成GUI

make的时候报错了


FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.env/cmake/SparkEnvConfig.cmake
FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.macros/cmake/SparkMacrosConfig.cmake
FOUND: /media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/co/qt.clipboard-history-analyzer/cmake/_spark/spark.find-qt5/cmake/SparkFindQt5Config.cmake
CMake Error at cmake/_spark/spark.find-qt5/cmake/SparkFindQt5Config.cmake:8 (find_package):
  By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has      
  asked CMake to find a package configuration file provided by "Qt5", but     
  CMake did not find one.                                                     
                                                                              
  Could not find a package configuration file provided by "Qt5" with any of   
  the following names:                                                        
                                                                              
    Qt5Config.cmake                                                           
    qt5-config.cmake                                                          
                                                                              
  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"  
  to a directory containing one of the above files.  If "Qt5" provides a      
  separate development package or SDK, be sure it has been installed.         
Call Stack (most recent call first):                                          
  cmake/SparkWithGit.cmake:57 (include)                                       
  cmake/SparkWithGit.cmake:98 (spark_include)                                 
  CMakeLists.txt:7 (spark_initialize_modules)                                 
                                                                              
                                                                              
-- Configuring incomplete, errors occurred!
make: *** [Makefile:27:release] 错误 1

很棒的工具,之前一直想找这样一个工具没想到有大佬实现了,
不知道能不能一次性选择多个历史粘贴出来呢?

一种可能,你的机器里没有装 qtbase5-dev 包。
不然的话,原本所有项目都可以直接这样构建。
唯独你这不行,这是你的环境问题
applaud

Reply View the author
yanjuner
Super Moderator
2024-07-18 10:01
#6

真不错

确实很实用 先进收藏夹再说

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-07-18 14:47
#7
魔法师

一种可能,你的机器里没有装 qtbase5-dev 包。
不然的话,原本所有项目都可以直接这样构建。
唯独你这不行,这是你的环境问题
applaud

安装完qtbase5-dev之后make package output了这个:

/opt/deepin-shared-libs/Qt5.15.10gles/bin/uic: error while loading shared libraries: libicui18n.so.63: cannot open shared object file: No such file or directory

make[3]: *** [CMakeFiles/clipboard-history-analyzer_autogen.dir/build.make:75:clipboard-history-analyzer_autogen/timestamp] 错误 1
make[3]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make[2]: *** [CMakeFiles/Makefile2:138:CMakeFiles/clipboard-history-analyzer_autogen.dir/all] 错误 2
make[2]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make[1]: *** [Makefile:156:all] 错误 2
make[1]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make: *** [Makefile:28:release] 错误 2


make run之后build目录下也没有deb包

Reply View the author
魔法师
deepin
2024-07-18 14:59
#8
把一切操作变成GUI

安装完qtbase5-dev之后make package output了这个:

/opt/deepin-shared-libs/Qt5.15.10gles/bin/uic: error while loading shared libraries: libicui18n.so.63: cannot open shared object file: No such file or directory

make[3]: *** [CMakeFiles/clipboard-history-analyzer_autogen.dir/build.make:75:clipboard-history-analyzer_autogen/timestamp] 错误 1
make[3]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make[2]: *** [CMakeFiles/Makefile2:138:CMakeFiles/clipboard-history-analyzer_autogen.dir/all] 错误 2
make[2]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make[1]: *** [Makefile:156:all] 错误 2
make[1]: 离开目录“/media/fgg/9b0890a4-5d68-4110-af1e-14806be63b55/qt.clipboard-history-analyzer-master/qt.clipboard-history-analyzer-master/build”
make: *** [Makefile:28:release] 错误 2


make run之后build目录下也没有deb包

doubt
这里有个 uos20 构建的包:
https://gitee.com/zinface/qt.clipboard-history-analyzer/releases/tag/v0.0.1

Reply View the author
昵称111
deepin
2024-07-19 18:35
#9

非常不错,收了

Reply View the author
New Thread

Popular Events

More
国际排名
WHLUG