Jump to content

QuickLook Cycling


Recommended Posts

Just recently gotten into using Alfred for file browsing, and after a rough initial period, it's proving to be way faster than I expected, so kudos! (again).

 

One thing I miss from Finder is the ability to keep quicklook open whilst cycling through files. At the moment, if I want to go through the files on my desktop to see what's there and delete them, I need to hit Shift in Alfred to bring up quicklook, see what the file is, close it, then move on to the next file and repeat. This is in contrast to Finder, where I can just hit the down arrow to see the next file in quicklook straight away.

 

Is there a way to do this that I might be missing, or should this be a feature request?

Thanks :)

Link to comment
Share on other sites

Just recently gotten into using Alfred for file browsing, and after a rough initial period, it's proving to be way faster than I expected, so kudos! (again).

 

One thing I miss from Finder is the ability to keep quicklook open whilst cycling through files. At the moment, if I want to go through the files on my desktop to see what's there and delete them, I need to hit Shift in Alfred to bring up quicklook, see what the file is, close it, then move on to the next file and repeat. This is in contrast to Finder, where I can just hit the down arrow to see the next file in quicklook straight away.

 

Is there a way to do this that I might be missing, or should this be a feature request?

Thanks :)

 

This would be more of a feature request. Alfred doesn't currently have the ability to cycle through the results in the manner that you have described.

Link to comment
Share on other sites

Just recently gotten into using Alfred for file browsing, and after a rough initial period, it's proving to be way faster than I expected, so kudos! (again).

 

One thing I miss from Finder is the ability to keep quicklook open whilst cycling through files. At the moment, if I want to go through the files on my desktop to see what's there and delete them, I need to hit Shift in Alfred to bring up quicklook, see what the file is, close it, then move on to the next file and repeat. This is in contrast to Finder, where I can just hit the down arrow to see the next file in quicklook straight away.

 

Is there a way to do this that I might be missing, or should this be a feature request?

Thanks :)

 

Moved to feature suggestions :)

Link to comment
Share on other sites

  • 2 weeks later...

Until this feature is added, you can achieve almost the same effect today by installing Karabiner and adding the following XML to the private.xml file in ~/Library/Application Support/Karabiner, within the file's <root> element. Then, in Karabiner, click the ReloadXML button and enable the new remapping by clicking its checkbox.

 

Now, within Alfred's Quick Look, using the up or down cursor key will automatically send the Escape key to close Quick Look, wait 100ms, send the cursor key itself, and then send the Shift key to open Quick Look on the previous/next item. The 100ms wait time works on my computer, but may require adjustment for other computers. While holding the Fn (Function) key, you can use the up/down cursor keys to navigate within a Quick Look document.

 

This fix assumes that the "⇧ to Quick Look selected item" option is enabled in the Advanced tab of the File Search feature in Alfred Preferences. The XML could be modified to instead send ⌘Y to open Quick Look.

 

Enjoy!

 

  <appdef>
    <appname>ALFRED</appname>
    <equal>com.runningwithcrayons.Alfred-2</equal>
  </appdef>
  <windownamedef>
    <name>Quick Look</name>
    <regex>^Quick Look$</regex>
  </windownamedef>
  <item>
    <name>Alfred Quick Look cursor up/down fix</name>
    <identifier>private.alfred_quick_look_cursor_up-down_fix</identifier>
    <only>ALFRED</only>
    <windowname_only>Quick Look</windowname_only>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_DOWN | ModifierFlag::FN,
      KeyCode::CURSOR_DOWN
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_UP | ModifierFlag::FN,
      KeyCode::CURSOR_UP
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_DOWN,
      KeyCode::ESCAPE,
      KeyCode::VK_WAIT_100MS,
      KeyCode::CURSOR_DOWN,
      KeyCode::SHIFT_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_UP,
      KeyCode::ESCAPE,
      KeyCode::VK_WAIT_100MS,
      KeyCode::CURSOR_UP,
      KeyCode::SHIFT_L
    </autogen>
  </item>
Edited by Roscoe
Link to comment
Share on other sites

 

Until this feature is added, you can achieve almost the same effect today by installing Karabiner and adding the following XML to the private.xml file in ~/Library/Application Support/Karabiner, within the file's <root> element. Then, in Karabiner, click the ReloadXML button and enable the new remapping by clicking its checkbox.

 

Now, within Alfred's Quick Look, using the up or down cursor key will automatically send the Escape key to close Quick Look, wait 100ms, send the cursor key itself, and then send the Shift key to open Quick Look on the previous/next item. The 100ms wait time works on my computer, but may require adjustment for other computers. While holding the Fn (Function) key, you can use the up/down cursor keys to navigate within a Quick Look document.

 

This fix assumes that the "⇧ to Quick Look selected item" option is enabled in the Advanced tab of the File Search feature in Alfred Preferences. The XML could be modified to instead send ⌘Y to open Quick Look.

 

Enjoy!

 

  <appdef>
    <appname>ALFRED</appname>
    <equal>com.runningwithcrayons.Alfred-2</equal>
  </appdef>
  <windownamedef>
    <name>Quick Look</name>
    <regex>^Quick Look$</regex>
  </windownamedef>
  <item>
    <name>Alfred Quick Look cursor up/down fix</name>
    <identifier>private.alfred_quick_look_cursor_up-down_fix</identifier>
    <only>ALFRED</only>
    <windowname_only>Quick Look</windowname_only>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_DOWN | ModifierFlag::FN,
      KeyCode::CURSOR_DOWN
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_UP | ModifierFlag::FN,
      KeyCode::CURSOR_UP
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_DOWN,
      KeyCode::ESCAPE,
      KeyCode::VK_WAIT_100MS,
      KeyCode::CURSOR_DOWN,
      KeyCode::SHIFT_L
    </autogen>
    <autogen>
      __KeyToKey__
      KeyCode::CURSOR_UP,
      KeyCode::ESCAPE,
      KeyCode::VK_WAIT_100MS,
      KeyCode::CURSOR_UP,
      KeyCode::SHIFT_L
    </autogen>
  </item>

 

 

Awesome! Thanks :) The load time between files is a wee bit slow, so I might play with it, but as a work-around this is brilliant.

Link to comment
Share on other sites

  • 7 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...