Jump to content

nikivi

Member
  • Content Count

    802
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by nikivi

  1. I am trying to modify my web searches workflow and got rid of Kingpin library as it was unnecessary. I tried to keep main.go as minimal as possible and make a call to doSearch() func in search.go file. Here is the workflow I am using that is built from that code. One thing I don't understand is why when I make a search, the results don't get filtered. I checked and I do assign UID to all the items. I have nearly the same workflow here that I also removed Kingpin from and that works perfectly well. Would love any help on this. Thank you.
  2. I used the workflow @deanishe linked above but switched to a different solution all together for all my note taking. Now I just write all my notes as markdown files in Sublime Text. I put all the notes in one directory called knowledge that I put in Dropbox for syncing. And I can open any file in this directory with Alfred scoped to the path where the directory lies. I made a workflow for it too. On iOS, I use Ulysses app to edit the notes as Ulysses can consume directories of markdown files that are stored on Dropbox. The bonus point of it all is that I can then render all these markdown files to the web with GitBook so anyone can read them. If you want to keep private notes in this setup, I would create a directory in the main repo and git ignore it so it won't be pushed online for all to see. This setup works for me and I am super happy with it. Maybe you like it too. I am just not fond of keeping all my notes in a database that only Notes or Bear or any one app can read. Markdown files are super portable. Oh and Sublime Text has vim mode which neither Notes nor Bear nor Ulysses have.
  3. Updating and creating workflows is really easy for me. I use this workflow to search for the workflow I want to release/update to ~/Desktop. For example pressing enter on this: Will copy the workflow to desktop but also copy the version number to my clipboard `v.1.4`. I then modified @deanishe Repos workflow. Here is my modification. It searches across my repositories and on modifier press will open a new release on GitHub so I can instantly insert the version number I already have in my clipboard. Then write what changes I made to the workflow and attach the workflow. And it's released. ? For releasing the workflows in this forum, I have a small Typinator snippet I use: Which prefills all the required information I need. I don't bother duplicating the README in the forum as the README changes often and I don't want to keep two copies of it both in this forum and on GitHub. This forum is mostly for letting other Alfred users know about the workflow. I also don't bother changing the workflow's internal README too and just use this template: I only change the Website to link to the actual workflow when I release it. So yeah, you can automate most tiresome things if you wish.
  4. I am curious if you had any time yet to look at this. I would really appreciate this feature as I use Contacts Filter a lot during my day and getting values from fields like `GitHub`, `Twitter`.. with modifiers would save me a lot of time. Thank you.
  5. I have this workflow and inside it in a red Bash Run Script I want to send an HTTP request that needs as OAuth my GitHub username and password. I want to be able to share this workflow with other people and thus I don't want to put my GitHub credentials in the workflow. The request I need to send is this: https://developer.github.com/v3/repos/#delete-a-repository Actually I think I can get a GitHub OAuth token and save it in Alfred dirs somewhere and then use that but those Alfred directories always confused me. ?
  6. Never mind all this. I solved it by simply running these `hub` commands in iTerm by creating a zsh function and calling that in iTerm. Zsh function: # Fork cloned repo gfr(){ hub fork git branch --set-upstream-to nikitavoloboev/master master git remote rename origin upstream; git remote rename nikitavoloboev origin } And I just made AppleScript run the commands in succession like so: ❯ cd ~/dev/forks/codehn && gfr && exa Here is the final workflow in the odd chance anyone wants to use it. ? Thank you very much @vitor
  7. Yay. It now forks the repo. However a strange thing happens where the AppleScript that should then cd into the directory I moved to ~/dev/forks doesn't do that. It prints: cd Updating new remote: ~/dev/forks/bat && exanikitavoloboevnikitavoloboev instead of `cd ~/dev/forks/bat && exa. It's strange because I thought that Bash should run things one after another. So it should wait until hub fork finishes doing its thing. And then runs the other stuff like moving the directory, running the two git commands I do: #/usr/local/bin/hub branch --set-upstream-to nikitavoloboev/master master #/usr/local/bin/hub remote rename origin upstream; git remote rename nikitavoloboev origin And then I echo the path of where the fork now should lie with: echo "~/dev/forks/$CLONE_DIR_NAME" The only thing I did change was to add source ~/.zshrc at the top of the Run Script object. Here is the updated workflow. Here is what I get in debugger when I run the action. Should I perhaps put some pauses in the bash script? It already runs slower than I would like it to presumingly because of me sourcing my entire shell env.
  8. The only hub related option I see there is: hub.protocol=https The rest is things from my git config file. Here is an image of it, maybe it is helpful:
  9. I don't have this file. And both of those variables are empty for me. The hub fork works perfectly well when ran from iTerm.
  10. I started to colour Alfred objects that have errors in them and need to be fixed in red colour. A kind of TODO but without actually writing TODO in a note or anywhere. I also made a KM macro to quickly do the colouring of the object so I don't have to do it manually: It helps me quite a bit.
  11. I have this workflow originally made by @vitor and modified by me. It is messy but it works for nearly everything I need it to do. Except one thing. This script tries to run inside it `hub fork`. I have downloaded hub on my system. And I give the full path to hub like so: /usr/local/bin/hub. This fails for me and doesn't actually do the fork. If I run the same command in my terminal however, the command works perfectly well. The debugger shows this when I run it: [2018-05-14 20:31:17][input.scriptfilter] Processing output of 'action.script' with arg '/Users/nikivi/dev/clones/subliminal' [2018-05-14 20:31:17][ERROR: action.script] Error forking repository: Unauthorized (HTTP 401) Requires authentication fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git I suppose it is because Alfred doesn't see my GitHub credentials attached to my Git config but I am not sure how I can solve this, if I can. The purpose of this this object is that after I scan my ~/dev/clones directory and get a list of different repos there, I run an action and it forks the repository using `hub fork` command and then moves the repo from ~/dev/clones to ~/dev/forks. The moving part works, it's the forking that doesn't. Thank you for any help.
  12. I have two themes I like to use. One dark and one light theme. I would like to have Alfred use one of these themes in some apps but not others. In my case I would like to have Light theme be Default. However I want to make iTerm and Sublime Text two apps where Alfred invocation (both normal hotkey or triggered through hotkey or external trigger) will use the Dark theme instead. Would this be possible to add to Alfred?
  13. nikivi

    Ayu Light

    Turns out someone already made a perfect light theme. Thank you @Florian and his Paper theme.
  14. nikivi

    Ayu Light

    Thanks. Fixed. ?
  15. nikivi

    Ayu Light

    Ayu Light Theme I have recently started using more light themes for writing code and have been enjoying using Ayu theme across all my editors. Sublime / VS Code / Vim. So I made a light theme for Alfred that I now use. Here is how it looks: I use D'Angelo theme for when I want to use a 'dark' theme. Ayu Light Theme Download
  16. Released new update to update the index for the wiki. The wiki is pretty big now and I use it myself many many times a day. I hope someone else might find it useful too. Let me know if you do. ? This should be the last update with manual index update, next update should install the SUMMARY.md index from GitHub and cache it for a week or so. I am still battling with how to make it work on the Go side but I'll manage it soon. Also I cannot wait to split the mess that this workflow is and separate the curated lists stuff and put it in Alfred Learn Anything. Everything cached and automatically updated right from GitHub. Would be crazy cool. Hope you like the update. ?
  17. Since Alfred allows to colour workflow objects to many colours, I wonder if anyone actually use this feature to somehow separate objects in some way. Perhaps by group or some kind of category or meaning. I know I am curious about this as I never actually added any colours in my workflows, only notes. I was inspired to ask this question from @deanishe's Safari Assistant workflow as I saw he used colours to neatly group certain workflow objects together that I found quite cool. Anyone else does something similar? Would love to hear your thoughts/reasoning on it.
  18. I am currently 'solving' this issue for myself by automating insertion of the external triggers with same trigger name. Which whilst a bit annoying, works. I will try to install things not from npm though going forward.
  19. Also in case of MDN, there is no .alfredworkflow file anywhere to be found. Only way I see how to install it is npm.
  20. Will I get workflow updates this way? I am not too familiar with Alfy.
  21. Yes I did. I guess there is no way to avoid it then. Oh well.
  22. I have a few workflows that I installed with npm. The issue with these workflows is that I often like to add an external trigger to the workflows I am using. However after a few days or weeks, the workflows randomly reset to their initial state, disregarding all my changes. An example of a workflow that reset itself multiple times already is MDN. But there is many more. Why does this happen? And can I avoid it?
  23. So simple but so powerful. I didn't know pbcopy would copy the file content like that. Thank you for sharing it.
  24. Alfred forum together with Keyboard Maestro are my two favourite places to talk about macOS and the awesome things you can do with it. I always wanted to create a chat room where people can share their experiences and the cool things they have made/done on macOS/iOS. Be it some Alfred workflow, KM macro or an new app you have found or made. I made a Telegram group to fill this void in my life and hopefully meet and talk with more likeminded people who are also passionate about mac and what you can do with it. If you are interested in joining. Here is the invite. Hope to see you there. ? P.S. This is not strictly an Alfred chat but Alfred is a pretty awesome part of the macOS experience. This forum is still the best and preferred place to ask any Alfred related questions as anyone can search and query this forum. The chat is made to share experiences and talk about how you can connect all these cool apps and tools to work together in new and novel ways.
×
×
  • Create New...