Jump to content

Acidham

Member
  • Posts

    429
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Acidham

  1. @jesused makes sense! I changed it and released a new version: https://github.com/Acidham/alfred-image-shrinker/releases/tag/v1.4.3
  2. Not easily via config UI but you can change the `chrom_history.py`. At the beginning of the file, the paths are configured.
  3. I don't use bookmarks at all. Instead, I built this workflow that relies heavily on my browser history. For me, the URLs I visit frequently become my 'bookmarks' in a way. Since Arc imports bookmarks from other browsers but doesn't support them natively, it hasn't been an issue for me. I navigate mostly through my history, which effectively serves as a dynamic list of my most visited and important sites. Curious to hear how others are adapting to this or if anyone else has ditched traditional bookmarks for a more fluid approach like history search.
  4. @osthing I love your "Why?" illustration! So sweet 😀 I can tell you why: I basically forgot to add airpodpro2.png to the workflow. Thank you for reporting I released a new version: https://github.com/Acidham/alfred-airpod-connector/releases/tag/v1.3.10
  5. yep model number and from what I see the model is supported, but it seems the icon file will not be picked up. When you open the FINDER (right-click on the workflow) you should see the .png files. Please check
  6. I assume this is the Firmware Version but I need the AirPod version or better Model Number which you can find in settings when connected.
  7. @osthing what AirPod version are you using?
  8. Hi @Faris Najem I changed handling of duti app dependency. Please try and let me know: https://github.com/Acidham/alfred-default-app/releases/tag/v1.4.3
  9. @Stephen_C I just shared via direct message a fixed code snipped, but I am uncertain if the message was ever sent. Therefore, here again. The new code should fix most of the issues when reading the title of a webpage. Just replace the code in WF with the code below. import urllib.request import re import os import http.cookiejar def fetch_webpage_title(url): try: cj = http.cookiejar.CookieJar() opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj)) headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.3'} request = urllib.request.Request(url, headers=headers) response = opener.open(request) # response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return "" url = os.getenv('theURL') print(fetch_webpage_title(url))
  10. We could improve over time. I did this quick and dirty for the time being. In case no error were thrown, I suggest putting it into the next release and improving it over the time.
  11. @Stephen_C uups sorry forgot to return an empty string instead of returning the error. And shame on me, I did not test it enough. i changed the line return f"An error occurred: {e}" to return "" import urllib.request import re import os def fetch_webpage_title(url): try: # Fetch the webpage content response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') # Use regex to find the title tag title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return "" url = os.getenv('theURL') print(fetch_webpage_title(url))
  12. @Stephen_C In order to extract the title of a webpage as a prefill for the prompt, I added the following Python script as a WF step. It would be great to add it to your workflow… Python3 script: import urllib.request import re import os def fetch_webpage_title(url): try: # Fetch the webpage content response = urllib.request.urlopen(url) html = response.read().decode('utf-8',errors='ignore') # Use regex to find the title tag title_match = re.search('<title>(.*?)</title>', html, re.IGNORECASE) # Extract the title if found if title_match: return title_match.group(1).strip() else: return "" except Exception as e: return f"An error occurred: {e}" url = os.getenv('theURL') print(fetch_webpage_title(url))
  13. Here's a rundown of what each option in the rsync command does: -r: This stands for "recursive," which means that rsync will copy all subdirectories and their contents, not just the files in the top-level directory. -t: This option preserves the modification times of files. -v: "Verbose." This makes rsync provide more detailed output about what it's doing. -u: This tells rsync to only copy files that have a more recent modification time on the source than on the target. In other words, if the target file is newer or the same age as the source file, it won't be overwritten. -c: Instead of just looking at file modification times, this option makes rsync check the contents of files to determine whether they need to be copied. It uses a checksum for this. --delete-after: This option means that after rsync has copied all the necessary files, it will delete any files in the target directory that aren't in the source directory. It ensures that the target becomes a mirror image of the source. --ignore-errors: This tells rsync to continue transferring the rest of the files even if some files give errors. --stats: This option makes rsync provide a summary of how much data was transferred and other related stats.
  14. > Now I want to change destination in rsync for incremental backup but don't want to add again and do full backup you can change in config json but you can also delete and add again. Rsync does not perform a full backup it just sync, means it starts where you ended before you deleted the entry.
  15. @xilopaint Are there any other possibilities to lookup Alfred Workflow and Shortcuts similar to what `Alfred Search Workflow` provides? If yes, I changed to define shortcuts in User Configuration. Otherwise, I would refrain from the “good practice”. Define KS in User Configuration is ok, but I would rather not open User configuration all the time to look up KS. For me, it looks like a workaround rather than a good practice.
  16. @xilopaint I think you should use the keyword for history search with Argument Optional. Makes sense! Also, it’s a good practice to include an option to change the keywords in the user configuration panel. I doubt that this is good practice. I am often using this workflow (https://alfred.app/workflows/acidham/search-alfred-workflows/) to find the right workflow. With pressing SHIFT, I get a documentation with keyboard shortcuts. When using configurable keywords, I am just seeing a variable name, which does not help at all. I would adopt hi and bm as default. You can do that by just changing the shortcut, right?
  17. Currently it’s showing dark Chrome icon and not many use Chrome. The Chrome icon is a fallback icon in case favicon cannot be found. The idea is to show pages in a search result that belong together. For example, searching for Alfred …the results are visually grouped together.
  18. Tab search is not supported for History and Bookmark search. There are other workflows available to perform Tab search. What is the value of the browser icon? The use case is to have an independent search across all browsers in use, but it always opens in the default browser or if you press CMD + ENTER you can open in another browser.
  19. Currently, there is no way to merge both searches into one keyword.
  20. Yes, all the three, but it was just for debugging. I released a new version and removed `py3.sh` completely. https://github.com/Acidham/alfred-default-app/releases/tag/v1.4.2
  21. @vitor yep that is the plan to get rid of py3.sh. Meanwhile, it should work with python3. But first I wanted to get confirmation.
  22. py3.sh is checking for the latest version of python3. You can easily comment that out for time being in the workflow steps: e.g. # ./py3.sh ext.py "$1" python3 ext.py "$1" Can you also send me the python3 version you are using?
  23. I am on M1 Pro as well, but search works superfast. Improving performance implies I need to be able to reproduce first or being able to narrow down to one of the browsers. I suggest starting, narrowing the problem down to one Browser. Delete history files and start from scratch and see when performance gets worse, etc. Once reproducible, I am happy to look into the issue.
×
×
  • Create New...