Jump to content

giovanni

Member
  • Posts

    524
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by giovanni

  1. thanks, good suggestions! Extra spaces or \n don't help. 

    1 hour ago, vitor said:

    I suspect it might the app you’re pasting to on iOS.

    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. 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

    1. Open a Google Sheet in your browser. 
    2. Launch alfred-gsheets via keyword (default: gshe) or hotkey
    3. alfred-gsheets will check the frontmost page with one of three outcomes: will check the frontmost page with one of three outcomes:

       

      1. The website is not a Google Sheet ▶️ check URL
      2. The website is a Google Sheet but you don’t have the right permissions ▶️ review the Setting up section
      3. The website is a Google Sheet and you have at least viewing privileges ▶️ go to step 4

       

    4. alfred-gsheets will list the individual worksheets. Select one to generate a alfred-gsheets Workflow instance to browse that Sheet. 

    5. 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
  4. 12 minutes ago, sönke said:

    I would like to use this workflow while writing

    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
  5. 15 hours ago, AuspiringMind said:

    HOWEVER, then when I went back to the "backup" computer, where all of my Alfred workflows have been working, they no longer were (both are sharing the preferences folder via DropBox.

    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? 

  6. 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...