Comments (19)
Perhaps ask for a name, and if the user doesn't enter one, then use date+time for the name.
That's what I had in mind actually. Will try get a PR running because I miss Go now that I tried JavaScript.
from alfred-safari-assistant.
JavaScript is not the best designed language
It has its quirks yeah. TypeScript is pretty awesome though. I like the gradual typing approach and TS type system is quite expressive.
But from my short time in JS land, I do think that this ecosystem can do well with learning some Go proverbs. I do feel like so much care was put into making Go simple yet so productive that it makes working with it very pleasant.
Also I thought Go was hard. But working on complex web apps is so hard when everything is not neatly isolated and easy to reason about. Writing small tools and workflows is like a breath of fresh air.
from alfred-safari-assistant.
learning some Go proverbs
TBH, a lot of that is incompatible with JS because it's single-threaded and can't do proper concurrency the way Go can.
I do feel like so much care was put into making Go simple yet so productive
You're exactly right. It was. You can see the same thing with Python and Ruby.
JavaScript was literally thrown together in a few days to solve very trivial problems, and it still shows. The same largely applies to PHP.
Also I thought Go was hard
Go isn't "hard" so much as "correct". Like Python, the language is constructed in a way that strongly encourages good coding practices. And Go is a far simpler language than Python, too.
I like Go because these days, it's arguably a better fit with the Zen of Python than Python itself is. And 20x faster, which is super cool.
from alfred-safari-assistant.
@sundarv85 Please don't add comments that just say "+1". Add a thumbs-up to the first post instead.
from alfred-safari-assistant.
Is it being worked on?
I plan to add it at some point. Will update the issue when I make any progress.
from alfred-safari-assistant.
That said, I've opened different issue on this topic
You make some good points.
I'll have a think about how I can best adapt the workflow to make it more flexible. Seeing as the workflow is largely based around scripts, I'm currently thinking that allowing users to set a script as the default action for URLs would be the most suitable solution.
from alfred-safari-assistant.
Should be pretty simple to make as I already know the code needed to retrieve all the open safari tabs. Your Safari Go lib may do this too even and if not it can be extended to achieve this.
What do you think?
from alfred-safari-assistant.
Good idea.
Your Safari Go lib may do this
It does. I mean, one of its jobs is to provide a list of all open tabs.
All the work is in implementing the front-end.
Out of interest, does the history search still work for you? I always get a "database is locked" error on High Sierra, but nobody else has reported the same problemβ¦
from alfred-safari-assistant.
does the history search still work for you
Works flawlessly. Fast too. π
from alfred-safari-assistant.
You're using a release, aren't you? I mean, you didn't build it yourself.
Because it looks like I've broken something or the SQLite library has changed something.
from alfred-safari-assistant.
I am using v0.5 from releases yes.
from alfred-safari-assistant.
Thanks.
Back on topic, I wonder if it's better to name the sessions rather than just use date+time.
Alfred can't show the list of sessions and their contents at the same time, so names might be clearer.
Perhaps ask for a name, and if the user doesn't enter one, then use date+time for the name.
from alfred-safari-assistant.
Also I thought about letting users not only restoring sessions but going 'inside' each session and searching through the saved tabs too. Or even create a way to search across all tabs through all sessions in one interface. (acts like History but more focused on tabs you actually care about)
from alfred-safari-assistant.
I miss Go now that I tried JavaScript
π Yeah, JavaScript is not the best designed language, is it?
For my part, I think it's great that you learnt another language (that isn't PHP) first. It makes you sensitive to all the really dumb shit that JS does, and perhaps more importantly, all the dumb shit JS developers do.
I've had some big arguments with JS devs because they're so incredibly myopic.
from alfred-safari-assistant.
TBH, a lot of that is incompatible with JS
When I referred to the proverbs I actually meant to link to only one.
A little copying is better than a little dependency.
So much of JS is built on depending on trivial things that you can easily copy and paste to your code.
from alfred-safari-assistant.
+1 Looking forward for the sessions support in Alfred. This looks pretty interesting.
from alfred-safari-assistant.
Is it being worked on? Deprecation of Sessions extension driving me crazy, since now I forced to leave everything open and on top of that, every script/Alfred workflow opens new tab in existent window, even if it's in another Space...it's a mess.
Unfortunately, I'm not familiar with Go to help, but please count me in, if you need to test something.
from alfred-safari-assistant.
every script/Alfred workflow opens new tab in existent window, even if it's in another Space...it's a mess
That's Safari's doing, and that's an issue that should be addressed by Apple. It's unrealistic to expect every other script/workflow/application to try to work around it.
from alfred-safari-assistant.
That's Safari's doing, and that's an issue that should be addressed by Apple. It's unrealistic to expect every other script/workflow/application to try to work around it.
I completely agree with you, I'm just trying to convey another reason why sessions functionality would be incredibly helpful to have.
That said, I've opened different issue on this topic (#23). I would really appreciate some advice on how I can marry my workaround with Safari Assistant in particular, if such functionality isn't needed in Safari Assistant itself.
from alfred-safari-assistant.
Related Issues (20)
- Add ability to search multiple folders at once HOT 1
- Allow to search history for site root by URL HOT 2
- Can't search current tabs on Mojawe macOS HOT 6
- Allow quickly closing tabs HOT 3
- iCloud tab search doesn't filter results HOT 1
- Add action to open all iCloud tabs in Safari and remove the tabs HOT 2
- Search active tab, if not search bookmarks/recent history HOT 1
- custom browser HOT 2
- Open links in current desktop space HOT 3
- Allow setting a script as the default action
- Add built-in script to open in new Safari window
- Add an option to copy URL of tab HOT 3
- Modifier keys don't work with History and Bookmarks + History items HOT 1
- No such file or directory HOT 6
- Show the folder where the bookmark is in as subtitle
- Alfred4 not working HOT 4
- Add `Open in Google Chrome Canary` URL action HOT 4
- Bug: Workflow update does not do anything HOT 6
- Bug: Mac 10.15 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfred-safari-assistant.