Jump to content

giovanni

Member
  • Posts

    524
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by giovanni

  1. thanks, good suggestions! Extra spaces or \n don't help. Yes, it is Gmail for iPhone. Pasting works fine in Apple Notes... therefore a slightly better workaround is to paste in Notes first, then copy and paste in Gmail. Thanks!
  2. Hi all, I often need to copy markdown text (typically from Obsidian) from my desktop and paste it on my phone using the Universal Clipboard, but the pasted text loses all line breaks. If I show the clipboard in Terminal with pbpaste, the line breaks are shown correctly, but if I paste on my iPhone they are gone. I tried to replace \n with \r and \r\n in the clipboard, to no avail. I also tried to covert to RTF using @vitor's MarkdownTransform, but I still lose the line breaks. A suboptimal workaround is to first paste the text in a rich-text format app, then copy it from there, but that introduces an extra line break. Does anybody else have the same issue? I was hoping to create a Universal Action to copy text for the purpose of pasting it via Universal Clipboard while preserving the line breaks.
  3. @iandol yes, not sure what has changed but other pythons can now take precedence over the system Python. You just need to add `/usr/bin/` before `python3` in the script filter (see also this issue). I will update this and other workflows with the same issue.
  4. Thank you for this great workflow @vitor!! Would you consider adding the battery status, if available? @zeitlings had a script to retrieve it.
  5. @Dorv happy to help. A couple of questions: first, can you confirm that you are using the older ('Legacy') version of Outlook? second: are these real emails or tests? The first seems to be from 'None' to 'None' third: when you use `em`, do you get an error or is a draft created?
  6. remove the second do printerName=$(echo $line | awk '{print $1}') you can also replace the second if with elif, in which case you would need to delete the first fi
  7. here you go @macrospect Currently parsing lpstat -d, but I left the example string in the code in case you want to refine.
  8. it looks like the database was not downloaded. can you try forcing a refresh with todoist::refresh?
  9. @macrospect how does the output of your command (not sure which one, perhaps lpstat -a ?) look like? I can help with parsing it.
  10. If you don't need the file-based tasks which will require more work, this version works for me. I am not too familiar with BibDesk, let me know if there are things I missed...
  11. there are actually a couple of ways to open a minimized app via keyboard. It takes a bit to get used to them though
  12. @Beery are you able to edit the code? The fix in this thread worked for me.
  13. Is Alfred allowed to send notifications? Check in System Settings > Notifications
  14. Inspired by I-sheet-you-not, this Workflow creates new Workflows to access individual Google Sheets with Alfred. ⬇️Download Note: this setup is more complex than the average workflow. I tried to document all the steps, feel free to point to unclear steps or instructions. A screencast of the process is here. 🚀Usage Open a Google Sheet in your browser. Launch alfred-gsheets via keyword (default: gshe) or hotkey alfred-gsheets will check the frontmost page with one of three outcomes: will check the frontmost page with one of three outcomes: The website is not a Google Sheet ▶️ check URL The website is a Google Sheet but you don’t have the right permissions ▶️ review the Setting up section The website is a Google Sheet and you have at least viewing privileges ▶️ go to step 4 alfred-gsheets will list the individual worksheets. Select one to generate a alfred-gsheets Workflow instance to browse that Sheet. Once a new Workflow is created, ↩️ will lead you to its Workflow Configuration, where changes to keyword etc. can be made: Header Row (column headers). Row containing the column headers. Set this to 0 if no header.[/*] columns for Alfred’s Title (required), Subtitle and Arg variables. Alternatively, a custom layout can be set as follows: up to three lines (for Title (required), Subtitle and Arg variables), with layout text in quotes and column numbers in square brackets. For example:[/*] Title: "College 🎓: [1]" Subtitle: "City: [2]" Arg: "URL: [3]" Note: if a custom layout is used, the Title, Subtitle and Arg fields will be ignored. Append column: If you have writing privileges on your Google Sheet (see Setting up), you can indicate a column to which append values via alfred-gsheets using a keyword (default: [main workflow keyword]::append, e.g. uni::append) or hotkey[/*] [/list] 🧮 New workflow: usage entering the main keyword (default: first three letters of the workflow name) will list sheet columns according to the Title, Subtitle, and Arg variables. If the argument is a URL, Enter↩️ will open it in your browser. If not, Enter↩️ will copy it to the clipboard
  15. @luciano @pseudometa I came across this nice tool to convert DOIs and I added it to our workflow. Running it while a DOI URL is selected will now also produce a BibTeX entry.
  16. I added this function to a workflow I made in the past. install the workflow, then: select the text you want to edit open Universal Actions (default hotkey: ^ ⌘ \) find Delete text after last period press ↩️. the text will be replaced with the new text or, if you can't write in the current app, will be in the clipboard
  17. if you are OK with using Python, this will work: import sys s = sys.argv[1] s = s.rsplit('.', 1)[0] + '. ' print (s,end='')
  18. at this point, do you still get the /usr/bin/python: bad interpreter: No such file or directory error? If so, you still have an older version somewhere. If not, can you post the error?
  19. @kaidelm @benlim it seems to work fine for me. have you checked the SSL certificate as described in the Troubleshooting section of the documentation?
  20. it is failing to parse your due dates. What timezone are you on? Are you using UTC by any chance?
  21. great workflow! a couple of suggestions: 1) to add the option of showing thousand separators e.g. speed of light: 2) it would be great to accept as input imperial measurements (e.g. 5ft8in to cm), 3) accept ' for ft and '' for inches (e.g. 5'8'')
  22. Hi @PB-Panda welcome to the forum! You are correct, a script filter is not needed, and neither is a JSON output. You just need to print (or sys.stdout.write) your output so that it becomes available to the next item in the workflow. This is a similar workflow to which I have added a space removal universal action using Python, which should be helpful to you as a template. I hope this helps!
×
×
  • Create New...