-
Posts
6 -
Joined
-
Last visited
Reputation Activity
-
seishonagon reacted to vitor in RecentlyAdded — List directory contents by added date
We’ve all been through it! The quintessential example is forgetting a semi-colon, though I doubt that particular example happens much with the checks we have today.
-
seishonagon reacted to vitor in RecentlyAdded — List directory contents by added date
@seishonagon No plans to officially add alphabetical sort. But you can make a new Script Filter with language set to /usr/bin/ruby and paste the following:
require 'json' require 'pathname' script_filter_items = Pathname.new(ENV['downloads_dir']).expand_path.children.sort.each_with_object([]) do |entry, array| name = if entry.directory? entry.basename.to_path else entry.basename(entry.extname).to_path end array.push( type: 'file', title: name, subtitle: entry, icon: { path: entry, type: 'fileicon' }, arg: entry ) end puts({ items: script_filter_items }.to_json)
I offer that code, but no support for it (I tested it, and it worked).
-
seishonagon reacted to vitor in RecentlyAdded — List directory contents by added date
This workflow is officially deprecated in favour of Thumbnail Navigation
List the contents of directories, ordered by add or modified date. rda sorts from the most recently added and rdz does the reverse; rdn sorts from the most recently modified and rdo does the reverse.
The list is auto-refreshed, making for a good way to track changes.
To act on the selections, use the standard Alfred shortcuts. You can activate file actions, dive into directories, preview files, reveal in Finder, add to the file buffer…
By default the Workflow searches in ~/Desktop and ~/Downloads. Change the value in the directories Workflow Environment Variable to use different paths, separated by commas.