Coder Social home page Coder Social logo

Comments (19)

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024 1

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024 1

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.

deanishe avatar deanishe commented on September 16, 2024 1

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.

deanishe avatar deanishe commented on September 16, 2024 1

@sundarv85 Please don't add comments that just say "+1". Add a thumbs-up to the first post instead.

from alfred-safari-assistant.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024 1

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.

deanishe avatar deanishe commented on September 16, 2024 1

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024

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.

deanishe avatar deanishe commented on September 16, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024

does the history search still work for you

Works flawlessly. Fast too. πŸ™‚

from alfred-safari-assistant.

deanishe avatar deanishe commented on September 16, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024

I am using v0.5 from releases yes.

from alfred-safari-assistant.

deanishe avatar deanishe commented on September 16, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024

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.

deanishe avatar deanishe commented on September 16, 2024

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.

nikitavoloboev avatar nikitavoloboev commented on September 16, 2024

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.

sundarv85 avatar sundarv85 commented on September 16, 2024

+1 Looking forward for the sessions support in Alfred. This looks pretty interesting.

from alfred-safari-assistant.

andreiborisov avatar andreiborisov commented on September 16, 2024

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.

deanishe avatar deanishe commented on September 16, 2024

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.

andreiborisov avatar andreiborisov commented on September 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.