Giter Club home page Giter Club logo

alfredworkflow-recent-documents's People

Contributors

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

alfredworkflow-recent-documents's Issues

在使用 ra 时遇到一个问题

输入 ra 时,显示的候选项的第一项(ITunes)和第二项(RAID 使用工具)为固定的,从第三项开始才是历史使用过的应用。
这是 debug 的结果
[2019-06-14 21:04:51][input.scriptfilter] Queuing argument '(null)'
[2019-06-14 21:04:52][input.scriptfilter] Script with argument '(null)' finished
[2019-06-14 21:04:52][input.scriptfilter] {"items": [{"subtitle": "\ud83d\udd52 09-25 18:53 \ud83d\udce1 /Applications/Preview.app", "title": "Preview.app", "autocomplete": "Preview.app", "arg": "/Applications/Preview.app", "type": "file", "match": "Preview app Preview.app", "icon": {"path": "/Applications/Preview.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 04-13 12:27 \ud83d\udce1 /Applications/WeChat.app", "title": "WeChat.app", "autocomplete": "WeChat.app", "arg": "/Applications/WeChat.app", "type": "file", "match": "WeChat app WeChat.app", "icon": {"path": "/Applications/WeChat.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 03-28 20:03 \ud83d\udce1 /Applications/QQ.app", "title": "QQ.app", "autocomplete": "QQ.app", "arg": "/Applications/QQ.app", "type": "file", "match": "QQ app QQ.app", "icon": {"path": "/Applications/QQ.app", "type": "fileicon"}}, {"subtitle": "\ud83d\udd52 04-20 11:04 \ud83d\udce1 /Applications/iTerm.app", "title": "iTerm.app", "autocomplete": "iTerm.app", "arg": "/Applications/iTerm.app", "type": "file", "match": "iTerm app iTerm.app", "icon": {"path": "/Applications/iTerm.app", "type": "fileicon"}}]}
这是截图:https://imgchr.com/i/V5RC26

rd crashes due to "Operation not permitted" error.

This is the log output when I open alfred and type rd

[16:39:35.321] Logging Started...
[16:39:37.861] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[16:39:38.297] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[16:39:38.303] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
  File "main.py", line 170, in <module>
    allItemsLinkList.extend(itemsLinkList)
TypeError: 'NoneType' object is not iterable
[16:39:38.304] Recent Documents / Apps[Script Filter] [Errno 1] Operation not permitted: '/Users/fred/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl2'
[16:39:38.305] ERROR: Recent Documents / Apps[Script Filter] JSON error: Invalid value around character 1. in JSON:
[Errno 1] Operation not permitted: '/Users/fred/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentDocuments.sfl2'

SubText

Hi,
is it possible to get rid of the Subtext and the Icons?
It's a nice Gimmick, but personally I found the very distracting.
Cheers - Michael

symbol not found error

I get the following error:
image

I work on a apple silicon device (MacOS Big Sur). Some ideas about that problem?

"rr" doesn't work with MS Word

When I tap "rr while MS Word is the foremost app, it doesn't work.
(Thank you for this awesome workflow, by the way!)

not work

osx version:10.14.6
20200223134714
could not find target file from my folder
1

Operation not permitted

Env:
10.15.6

Alfred:
4.1.1

AlfredWorkflow-Recent-Documents
2.13

Err commnd:
rd、ra、rr

Fine commnd:
rf


commnd rd err msg:

[11:00:31.197] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[11:00:31.453] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[11:00:31.455] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
  File "main.py", line 170, in <module>
    allItemsLinkList.extend(itemsLinkList)
TypeError: 'NoneType' object is not iterable
[11:00:31.455] Recent Documents / Apps[Script Filter] [Errno 1] Operation not permitted: '/Users/lei/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications.sfl2'
[11:00:31.456] ERROR: Recent Documents / Apps[Script Filter] JSON error: Invalid value around character 1. in JSON:
[Errno 1] Operation not permitted: '/Users/lei/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.RecentApplications.sfl2'

watiing for response , thanks

无法查到最近文件

~/Library/Application Support/com.apple.sharedfilelist/ 文件夹

在系统里搜不到这个文件夹?

iShot_2022-07-31_15 21 35

how to exclude a file

How can I exclude a particular file (not a folder)? I added a file path to ExcludedFolders, but it did not work.

说不显示最近文件的

提醒下,需要在features - default results - search scope 里,把
~/Library/Application Support/com.apple.sharedfilelist/
添加到搜索范围里,,,

iShot_2022-07-31_15 40 22

Please add macOS 10.15 support

check macos version

macOSVersion=$(sw_vers -productVersion | cut -d '.' -f 1,2)
if [ "$macOSVersion" = "10.14" ] || [ "$macOSVersion" = "10.13" ]; then
MRUfileExt="sfl2"
elif [ "$macOSVersion" = "10.11" ] || [ "$macOSVersion" = "10.12" ]; then
MRUfileExt="sfl"
fi

Error: symbol not found

I debuged the workflow, since I did not get any results. This is the debug output for RD and RA. If needed, I can provide more outputs. I have an M1 Macbook Pro with the latest update (Big Sur 11.2.3)

RF---
[09:29:35.551] Logging Started...
[09:29:44.123] Recent Documents / Apps[Hotkey] Processing complete
[09:29:44.128] Recent Documents / Apps[Hotkey] Passing output '' to Script Filter
[09:29:44.159] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[09:29:44.364] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[09:29:44.364] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 16, in
from mac_alias import Bookmark
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/init.py", line 1, in
from .alias import *
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/alias.py", line 15, in
from . import osx
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/osx.py", line 424, in
_statfs = libc['statfs$INODE64']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x1011e9690, statfs$INODE64): symbol not found

--- RA:
[09:32:00.183] Logging Stopped.
[09:32:05.060] Logging Started...
[09:32:09.742] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[09:32:09.948] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[09:32:09.956] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 16, in
from mac_alias import Bookmark
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/init.py", line 1, in
from .alias import *
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/alias.py", line 15, in
from . import osx
File "/Users/USERNAME/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.6A398023-0EED-42B9-A886-F1A6B28EED56/mac_alias/osx.py", line 424, in
_statfs = libc['statfs$INODE64']
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 384, in getitem
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x104589690, statfs$INODE64): symbol not found

完全失效

最近使用的项目调到50个也没用,打开过的文件和文件夹用rd和rf都无法显示,不知道自己到底是哪里没设置好。

Fall back to Session.sublime_session for Sublime Text 3

rr sometimes fails for Sublime Text, because the Auto Save Session.sublime_session file is deleted when you quit Sublime Text, and it's not recreated until you open Sublime Text and edit and save a file.

It would be nice if the workflow could fall back to Session.sublime_session if Auto Save Session.sublime_session doesn't exist.

一些改进建议

这个想法很赞, 感谢作者! 感觉还有下面这些地方可以改进一下:

  1. 增加对 Microsoft Office 系列软件的支持, 他们 menu 里的名字叫 "打开最近的文件";
  2. 支持按拼音搜索中文字符.

macOS 13.0 无法使用

如题,更新完新系统后,workflow无法使用

[16:15:01.254] Logging Started...
[16:15:01.764] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Queuing argument '(null)'
[16:15:01.829] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Script with argv '(null)' finished
[16:15:01.834] ERROR: Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
[16:15:04.432] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Queuing argument '(null)'
[16:15:04.478] Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Script with argv '(null)' finished
[16:15:04.482] ERROR: Recent Documents / Apps[[Script Filter](alfredpreferences:workflows%3Eworkflow%3Euser.workflow.E0458251-874A-4C7A-8317-2E5D3E4A8E02%3EB4CFDC4F-AF3F-47C2-8100-476F7E6FF72E)] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Recent Downloads?

Can this be configured to show a list of the most recent files added to a specific folder, such as my Downloads folder?

添加Big Sur支持

Alfred动作中没有对Big Sur版本的判断导致rard无效,rr仍有效。现在Big Sur Beta的macOSVersion11.0

rr recent document with front most application such as Microsoft Excel or word doesn't work. Is it supposed to work?

I get the following error message in debugger log:

[20:06:01.891] Recent Documents / Apps[Script Filter] Queuing argument '(null)'
[20:06:02.301] Recent Documents / Apps[Script Filter] Script with argv '(null)' finished
[20:06:02.304] ERROR: Recent Documents / Apps[Script Filter] Code 1: Traceback (most recent call last):
File "main.py", line 215, in
allItemsLinkList.extend(itemsLinkList)
TypeError: 'NoneType' object is not iterable
[20:06:02.306] Recent Documents / Apps[Script Filter] Expected str, got bytes
[20:06:02.308] ERROR: Recent Documents / Apps[Script Filter] JSON error: JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0. in JSON:
Expected str, got bytes

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.