Back slash is used in windows, which makes so many headache for me. Then an idea came to my mind. It's

  1. writing a python script to modify my clipboard content, and
  2. creating a listary command to call the script.

steps

  1. create the script D:\tool\slash_convertion.py with following content.
import re
import clipboard text = clipboard.paste()
lsA = text.splitlines()
lsB = []
for line in lsA:
line = re.sub(r"\\", "/", line)
theMatch = re.search("^\"*(.*?)\"*$", line)
# print(theMatch)
line = f'"{theMatch.groups()[0]}"'
lsB.append(line)
text = "\n".join(lsB)
text += "\n"
# print(text.encode("utf8"))
# print(text)
clipboard.copy(text)
  1. create listary command

  2. input keyword slash to modify you clipboard content.

最新文章

  1. 同样有缓冲区,为什么bufferedReader输入流不需要清空缓冲区?而bufferedWriter需要清空缓冲区呢?
  2. [推荐]WebService开发知识介绍
  3. 原生DOM探究 -- NodeList v.s. HTMLCollection
  4. SOCKET:SO_LINGER 选项
  5. git和svn的区别001
  6. 比特币钱包应用breadwallet源码
  7. Spark官方文档——本地编写并运行scala程序
  8. ArcGlobe点击IGlobeServerLayer图层读取信息
  9. 英特尔Intel
  10. DNS安全浅议、域名A记录(ANAME),MX记录,CNAME记录(转)
  11. Decision Boundaries for Deep Learning and other Machine Learning classifiers
  12. 判断richtextbox选中的是否为图片
  13. 分布式发布订阅消息系统 Kafka 架构设计[转]
  14. cf702A Maximum Increase
  15. Git子模块引用外部项目
  16. JustSoso笔记
  17. Linux程序宕掉后如何通过gdb查看出错信息
  18. TFLite基础知识
  19. Oracle数据csv导入
  20. MyBatis基础:MyBatis数据基本操作(2)

热门文章

  1. 题解 CF17201 A~D2
  2. 题解 [SCOI2008]斜堆
  3. Moonraker
  4. 代码随想录算法训练营day09 | leetcode 28. 实现 strStr()
  5. Apache HttpClient使用和源码分析
  6. you-get下载
  7. uniapp 提示 打包时未添加 push模块
  8. gcc 内联汇编简介
  9. 让启动的jar包能打断点
  10. SAP 交货单抬头客制化界面以及字段