tianhao / alfred-mweb-workflow Goto Github PK
View Code? Open in Web Editor NEW搜索、打开MWeb 内部文档和外部 Markdown 文档
License: MIT License
搜索、打开MWeb 内部文档和外部 Markdown 文档
License: MIT License
如题。我倾向把mweb作为管理器和发布器,并把typora(他方markdown软件)作为编辑器。
如果能在从mweb打开的文件窗口中,一键通过alfred用typora打开,那会很方便。
另外,打开文件时,会自动打开新窗口,能否仍然在原窗口打开?
希望能完全兼容 typora 那真的太好用了!
谢谢
我打开了workflow的debug功能,虽然mpush能够正常运行,但是跳出了这样的错误:
[2019-04-01 09:00:45][ERROR: action.script] /Users/zhangyiteng/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/9A5C9356-CC16-44C6-AC42-395333EE0936: line 1: [: too many arguments
-h
貌似没什么用,加不加-h
得到结果基本一样哦
是否可以删除-h 相关代码?
可不可以分享下你的Editor Theme,Preview Theme,看上去挺好看的~
现在如果搜索内容包括了中括号,会报错”grep: brackets ([ ]) not balanced“
如题。
因为我更喜欢第三方app(Typora)的编辑功能,有时候我会用typora来打开mweb的文件来编写。
所以,现在我设置的目录如下:
“mo”:mweb目录
”moe“:(1)mweb目录(2)local目录
但这样的问题是,我用“moe”时候的文件会很混杂,毕竟mweb内外的文件都有。
我想到一个便捷的方法,就是在“mo”搜索时,按下ctrl+inter(又或者option)就用typora而非mweb打开文件。
那样的话,我的目录就能很简单,“mo”和“moe”各负责内外。
“mo”:mweb目录
”moe“:local目录
当外部文档库中的文件内容换行符为 CR / CRLF
时会出错
无法搜索到结果
大佬你好,文档检索时,对title的取值似乎是取文件第一行的内容,而不是文件名?
当我使用外部搜索来管理hexo生成的博文时,由于文档统一带有前缀类似如下:
---
title: 双机调试环境搭建
date: 2020-02-14 18:37:36
updated: 2020-02-14 18:37:36
categories:
tags:
---
因此title全部取值为---,导致无法正常使用moe -h
功能,如下图,还望修复。
[11:20:13.680] Logging Started...
[11:20:19.676] MWeb[Script Filter] Queuing argument ''
[11:20:19.754] MWeb[Script Filter] Script with argv '(null)' finished
[11:20:19.757] MWeb[Script Filter] {"items":[
{
"type": "file",
"title": "# 欢迎使用 MWeb",
"arg": "/Users/kuon/Documents/mWeb/docs/15822535188456.md"
}
]}
[11:20:19.838] MWeb[Script Filter] Queuing argument ''
[11:20:19.963] MWeb[Script Filter] Script with argv '(null)' finished
[11:20:19.969] MWeb[Script Filter] {"items":[
{"type": "file","title": "---","subtitle": "/Users/kuon/Documents/blog/source/_posts/折腾/博客搭建/Hexo配置及使用技巧.md","arg": "/Users/kuon/Documents/blog/source/_posts/折腾/博客搭建/Hexo配置及使用技巧.md"},
为啥你演示截图里打开文档在新tab,我在新的打开文档出现在新window?
现在总共 382 个文档,总大小 1.9MB,更新到 Macos 13 后mo 搜索反应卡顿,输入关键词后 15-20s 才会有反应
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.