Jump to content

Kalaschnik

Member
  • Posts

    19
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Kalaschnik reacted to vitor in Default Icon when path does not match   
    Your code looks reversed. What you seem to be doing is setting a default icon which will always exist, then saying “if icon.png exists (which it will) replace it with something else”.

    What you should do is set the alternative icon first, and if that does not exist, use icon.png. Something like (untested):
     
    const elementIcon = `${__dirname}/simple-icons/${element.name.toLowerCase()}.svg` const iconPath = fs.existsSync(elementIcon) ? elementIcon : "icon.png"  
  2. Like
    Kalaschnik reacted to vitor in How to pipe output to a new Alfred look-up session?   
    If you’re using a library, then it becomes a question for its author or documentation.
     

    That part is unclear. There is an autocomplete key in Alfred’s Script Filter JSON, but no key. What exactly are you doing?
     
     
    The way to force the autocomplete to expand on ↩ is to set valid to false. The Script Filter then reruns because the input changed. Presumably (haven’t verified), that workflow is checking if the input starts with a known string (t: or m:) to react accordingly.
     

    The language is irrelevant. All that matters is that you output the correct JSON.
  3. Like
    Kalaschnik reacted to vitor in Open Website with specific browser using an argument   
    Use {query} in the if (or outright leave it empty).
  4. Like
    Kalaschnik got a reaction from fcalazans in Microsoft Edge   
    Thats completely not true. Chromium-Edge uses the exact same bookmarks file structure and has the same internal workings as in Chromium/Chrome (regarding the bookmark management). I actually authored this functionality for a Windows Launcher application (Flow Launcher) to add Edge support for that software:
    https://github.com/Flow-Launcher/Flow.Launcher/pull/121
     
    The Code change I did was basically just some string replacements to get the path right (easy PR). Everything else was copy/paste from the existing chrome implementation.
     
    The bookmarks file is located at:
    Chrome
    ~/Library/Application\ Support/Google/Chrome/Default Edge
    ~/Library/Application\ Support/Microsoft Edge/Default  
    Here you can see the matching folder contents (top is edge), bottom is chrome (along with the highlighted bookmarks file)
     

     
    What that means; Alfred could actually support much more browsers (basically all Chromium (web browser) - Wikipedia). The bookmarks structure is in the Chromium project, it is and not something Chrome did uniquely.
     
    So, supporting other chromium-based browsers is an easy addition to the code base. Please Alfred, it is time for some search-and-replace-work to add this feature!
     
    Thanks ❤️
  5. Like
    Kalaschnik reacted to vitor in System Settings — Open macOS System Settings Panes   
    You haven’t, don’t worry about it! My answer was genuine. But you’re the only one so far with that question, while a bunch of people specifically asked for this when they faced the situation in Ventura, so adding a note does not seem necessary at this point.
     
     
    Alfred Preferences → Features → Default Results. Disable “Preferences” at the top.
  6. Like
    Kalaschnik reacted to ValSong in Microsoft Edge   
    (my english is poor.)
     
    U can link the Edge's Bookmarks to Chorme's folder,it works.
     
    But U must install a chrome🤣
     
    Use Terminal run this command.
     
    step 1. install chrome
    brew install --cask google-chrome
     
    step 2. link edge's bookmarks to chrome
    cd ~/Library/Application\ Support/Google/Chrome/Default
    mv Bookmarks  Bookmarks_233.bak
    ln -s  ~/Library/Application\ Support/Microsoft\ Edge/Default/Bookmarks  ./Bookmarks
  7. Like
    Kalaschnik reacted to Lunch Meat Hugh in Better Dictionaries   
    Hi, really interested in this workflow but I keep getting an error pop up every time I try to import dictionary. I get the following errors:
     
    [Fault] Transform 'MT_com.apple.automation.do_shell_script' hit unrecoverable error with reason='<private>' and context='<private>' with event='<private>!
     
    attempted to call TCCAccessRequest without the com.apple.private.tcc.manage-bby-mn
     
    and a few apple webkit errors. Would appreciate any help. Thanks!

  8. Like
    Kalaschnik reacted to deanishe in Rich Text Support for Clipboard History *plus* Paste as Plaintext Hotkey   
    My feature suggestion is that clipboard history should support rich text and there should also be CMD+OPT+V (or some other user-configurable Hotkey) that strips any formatting and pastes plaintext.

    The lack of this feature is the main reason I don't use Alfred as a clipboard manager. I don't need rich text a whole lot, but when I do, Alfred isn't up to the job.
     
    (For anyone that's interested, I use Keyboard Maestro to implement Paste as Plaintext.)
  9. Like
    Kalaschnik reacted to Vero in Show Full Title/Tooltip of the Name property within the Snippets Viewer   
    @Kalaschnik Given Alfred's primarily intended to be used from the keyboard, a hover-over would require moving from the keyboard, grabbing the mouse and hovering over the particular results.
     
    Perhaps in your case, as you're not using the text auto-expansion feature, something like a List Filter workflow instead of snippets might be better suited. You can then have a title and subtext, and then have that paste text.
     
    Here's how List Filters work:
    https://www.alfredapp.com/help/workflows/inputs/list-filter/
     
    Then connect a Copy to Clipboard utility to paste your argument to the frontmost app.
     
    Let me know if you need more help...
     
    Cheers,
    Vero
×
×
  • Create New...