Jump to content

jpm

Member
  • Posts

    11
  • Joined

  • Last visited

Reputation Activity

  1. Like
    jpm reacted to dfay in Finder scripts (including opening in a single window)   
    This is a workflow I've cobbled together from various sources, notably some modifications to https://github.com/NapoleonWils0n/bashfinder , which is actually a bash front end for a lot of AppleScript.
     
    It contains the following commands:
     
    fo - open a folder in the frontmost Finder window (also available as a File Action)
    fo:i - open a folder in the frontmost Finder window with Icon view (also available as a File Action)
    fo:c - open a folder in the frontmost Finder window with Column view (also available as a File Action)
    fo:l - open a folder in the frontmost Finder window with List view (also available as a File Action)
    all - open "All My Files" (Sierra) or "Recents" (High Sierra and later) in the frontmost Finder window - this uses a Key Combo action ⌘⇧F
    icloud - open iCloud Drive in the frontmost Finder window - this uses a Key Combo action ⌘⇧I
    fat - choose and open an existing tab or window
     
    rf - open a recent folder in the frontmost Finder window
    fi - set frontmost Finder window to Icon view
    fc - Set frontmost Finder window to Column view
    fl - Set frontmost Finder window to List view
    fg - Set frontmost Finder window to Gallery view (i.e. icon view with big icons and a dark background - this is my own take on a Gallery view, which predated the official one introduced in Mojave)
    fw - Close frontmost window and reopen active tab (i.e. close all tabs except the active one)
    merge - Merge All Windows (same as menu command)
    fcfix - set filename column width to 400
    clip - show the Finder clipboard (I bet you didn't know there was such a thing....)
     
    There is a single environment variable: 
    openInNewTab
    set it to 0 to open in the frontmost window (replacing the existing contents) or 1 (the default setting) to open in a new tab in the frontmost window
     
    By using fo and its variants, you can effectively have Alfred open folders in a single window as requested here: 
    https://www.alfredforum.com/topic/11393-opening-folders-in-the-same-finder-window/?do=findComment&comment=59570
    and here:
    https://www.alfredforum.com/topic/11327-any-way-search-open-a-folder-in-same-finder-window/?tab=comments#comment-59276
     
    v.0.5 (2019-06-08)
    Added fat keyword (was going to use ft but it was constantly confused with FaceTime)
     
    v.0.4 (2018-08-06)
    Added icloud and all keywords
     
    v.0.3 (2018-04-08)
    Added file actions
    Added rf and fw keywords
     
    v.0.2 (2018-04-06)
    Added openInNewTab
     
    Download:
    https://www.dropbox.com/s/u1bchxchlm4c1q3/Finder scripts.alfredworkflow?dl=0
     
     
     
  2. Thanks
    jpm reacted to blacs30 in Bitwarden CLI - Get passwords, username, TOTP and more from Bitwarden   
    Can you try and delete all `com.lisowski-development.alfred.bitwarden` items from keychain and run the login process again? It fails here in the javascript where it would write the received token into keychain.
  3. Thanks
    jpm reacted to blacs30 in Bitwarden CLI - Get passwords, username, TOTP and more from Bitwarden   
    Oh. I will check the script later once more. Was it ever working for you before?
  4. Thanks
    jpm reacted to blacs30 in Bitwarden CLI - Get passwords, username, TOTP and more from Bitwarden   
    Thanks for the logs. 
    2 more things I haven't asked yet;
    - Does the bw login work fine in the terminal? Can you try that, and once you are logged in, then the alfred workflow just needs an unlock
    - run a normal `bw logout` in the terminal and then delete this file: `rm ~/Library/Application\ Support/Bitwarden\ CLI/data.json` (it contains the encrypted secrets, loaded from the bitwarden server); then run bw login again, via terminal and/or via workflow
  5. Thanks
    jpm reacted to blacs30 in Bitwarden CLI - Get passwords, username, TOTP and more from Bitwarden   
    So do I understand that you got the workflow partly working now?
    One thing which doesn't really work yet easily is the usage of the bitwarden-cli in the terminal and in parallel the bitwarden workflow. that is because the session token will change each time an unlock happens and all the secrets are re-encrypted.

    As a workaround you can use this script to share the same token between the cli and the workflow https://github.com/luckman212/bitwarden-cli-helpers
     
    Thanks for mentioning the issue that after logout the wrong item is placed to unlock.. that will require a fix from my side.
     
×
×
  • Create New...