Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/16/2020 in all areas

  1. As a user of Neovim myself, I doubt @deanishe is recommending you use it. Vim’s a hard editor to grasp and you’ll be fighting to set it up and use it for a while, which is definitely not what you need right now. Sublime Text is good, but it is paid (or it nags you). Consider Visual Studio Code. It’s simple, capable, free and open-source, actively developed by a major company (Microsoft), and insanely popular (which translates to a vast plugin system). Yes, it’s build on Electron, but it’s far from the worst use of it.
    2 points
  2. Sorry, this bit was wrong (wrong data structure). result['items'] = [d for d in result['items'] if d['title'] not in titles_remove] json.dump(result, sys.stdout)
    1 point
  3. Thanks for sharing this. I hope that a new API for automation (including note open, exporting etc) will come out to enable this workflow again..
    1 point
  4. Get rid of unfiltered_output. That line converts result to a string. Second line should be result = [d for d in result if d['title'] not in titles_remove] And if you have any more questions, please upload your workflow somewhere. What do you mean "testing"? I mostly use Sublime or neovim as an editor, in any case.
    1 point
  5. That syntax defines a set, not a list. It doesn’t matter here, but it’s important to know the difference. A set usually isn’t what you want. You use a for loop or a list comprehension to remove the items you don’t want: # assuming results is a list of Alfred feedback dicts: # [ # { # 'title': '...', # }, # ] results = [d for d in results if d['title'] not in titles_remove] This is rather inefficient. It’s better to use json.dump(result, sys.stdout)
    1 point
  6. vitor

    create new folder

    @JolinM You’re writing a shell script, so get used to quoting variables to not fall into these issues: myPath="$(…)" cd "$myPath"
    1 point
  7. osascript implicitly writes the return value of the last evaluation to STDOUT, so the script will print the tab URL. The tab title is lost because you don’t do anything with the return value.
    1 point
  8. You've heard of workflow variables? Those. Passed into the notification. The same way as {query}. You write {var:SOME_VARIABLE} in the text field, e.g. Title = “{var:THING_NAME} was {var:THING_ADDED}”, Text = “You now have {var:THING_COUNT} {var:THING_NAME}”
    1 point
×
×
  • Create New...