News for hackers. Stuff that matters.
Re:Workspaces for Mac 1.0 by khedster on Wednesday May 24, 2017 @07:07PM (#14414141)
The problem this app is working on is a real pain point for me. My current solution is to use multi user accounts on my mac (roughly one for each use context I have), leave everything open, and fast user switch between the accounts. This works well enough and has the advantage of lots of isolation between contexts, but the overhead of creating and setting up a new user account is too much to have more than a couple of these (I'd love to have one per project). One advantage of the example of this level of isolation -- I setup my mail program in each account to only be setup for the mail accounts relevant to that context so I only get mail notifications for the context I'm focused on.

I'm strongly in favor of some innovation in this space, but this app's solution (and other, window management type solutions) I don't think has enough isolation between contexts for me.

Re:Workspaces for Mac 1.0 by mikecsh on Wednesday May 24, 2017 @09:04PM (#14414650)
I've often pondered this myself.

Windows has traditionally been a Window/document-centric OS where the primary object of interaction is a window (e.g. alt-tab would swap between individual Windows).

macOS has traditionally been an application-centric OS, one tabs between Applications.

What I would love to see is a project-centric system, where I can tab between projects and have all the relevant applications and documents appear and disappear with it.

Re:Workspaces for Mac 1.0 by plaguuuuuu on Wednesday May 24, 2017 @09:51PM (#14414804)
>What I would love to see is a project-centric system, where I can tab between projects and have all the relevant applications and documents appear and disappear with it.

Linux! I'm a Windows dev now and miss Linux so much.

What I used to do back in the day was simplistic, but still very useful - I'd have multiple desktops open, & have each project on its own desktop. SSH connections, code editors, network drives, VMs whatever. It keeps visual separation between environments, even if not total logical separation.

If you need better separation, you can have multiple sessions open at once with separate window managers, user accounts, file system roots, whatever you need - at the same time. I'm hazy on the implementation details but I've seen it done. Altho, this might be a bit old school today, with VMs taking less resources and stuff like docker existing.

Re:Workspaces for Mac 1.0 by a_t48 on Thursday May 25, 2017 @01:45AM (#14415498)
Windows also has multiple desktops now, since at least 10.
Re:Workspaces for Mac 1.0 by pmh on Thursday May 25, 2017 @01:52AM (#14415525)
Virtual desktops on Windows have been around since at least XP, albeit as a powertoy. I know at least AMD, and I presume Nvidia, also offer(ed) their own virtual desktop solutions as part of their GPU driver suites.
Re:Workspaces for Mac 1.0 by Someone on Thursday May 25, 2017 @05:46AM (#14416255)
So has Mac OS, since 2007 (the implementation wasn't perfect, though, and possibly still isn't perfect)
Re:Workspaces for Mac 1.0 by egypturnash on Wednesday May 24, 2017 @11:01PM (#14415024)
Turn on multiple desktops. One project per desktop. Command-arrow between desktops.
Re:Workspaces for Mac 1.0 by Sevrene on Thursday May 25, 2017 @12:10AM (#14415253)
That's what I do except I use TotalSpaces[1] to use the trackpad to swipe up, right, down or left to each workspace.

You can set applications to open on specific desktops, or any desktop. This combined with moom[2] really makes macOS a pleasure to work with and alleviates the need for multiple monitors.

There's been a lot of talk of people switching from macOS recently and while it's not unfounded I'd struggle replacing this setup.

1. https://totalspaces.binaryage.com/

2. https://manytricks.com/moom/

Re:Workspaces for Mac 1.0 by andy_ppp on Wednesday May 24, 2017 @11:37PM (#14415155)
An app can only be on one desktop - instead it should be on multiple spaces but filtered by project, right files open etc.
Re:Workspaces for Mac 1.0 by stephenr on Thursday May 25, 2017 @12:50AM (#14415349)
Are you sure about that? I'm pretty sure I've had safari windows on multiple desktops.
Re:Workspaces for Mac 1.0 by matanrubin on Thursday May 25, 2017 @03:01AM (#14415763)
Yes, you can have multiple Safari windows and place each one in a different virtual desktop.

The main issue I have with this setup is Cmd-Tab doesn't handle multiple windows of the same app that well. If I have multiple Safari windows in different desktops, it would basically just (randomly?) pick one and open it when I Cmd-Tab into Safari.

I really wish Cmd-Tab would be constrained to the desktop I'm currently using... Anybody has a solution for this issue?

Re:Workspaces for Mac 1.0 by jarpineh on Thursday May 25, 2017 @07:06AM (#14416541)
I've been using Contexts [1] for a while now.

It provides Cmd-Tab/Option-Tab replacement that shows all apps' all windows regardless of their desktop or full/split screen status. You can even search within window list.

It also has gestures and numberered switch for apps/groups.

Mostly it works without a hitch. Sometimes macOS' original Cmd-Tab manages to get first and both can arrive together, but that rarely happens. When macOS opens apps to multiple desktops and full screens on startup I have to sometimes let it know what apps are available by switching through them using Exposé (or whatever that's called).

I have no affiliation, but I'm a paid user.

[1] https://contexts.co

Re:Workspaces for Mac 1.0 by stephenr on Thursday May 25, 2017 @03:23AM (#14415844)
I don't think this is true either. I just tried this, and it would switch to the safari window in the current desktop without fail - it was only when there's no safari window for current desktop that it switched desktops.
Re:Workspaces for Mac 1.0 by ggus on Thursday May 25, 2017 @03:34AM (#14415875)
I think HyperSwitch [http://hyperswitch.bahoom.com/] can do that?
Re:Workspaces for Mac 1.0 by herrvogel- on Thursday May 25, 2017 @06:47AM (#14416475)
+1 for HyperSwitch. I have the standard cmd-tab for applications, alt-tab switches between all windows on the current virtual desktop and alt-` switches between all windows of the current application (across all virtual desktops).
Re:Workspaces for Mac 1.0 by Yaggo on Friday May 26, 2017 @01:17AM (#14422138)
System preferences -> Mission control -> When switching to an application, switch to a space with open application -> ticking off may help to limit cmd+tab for current space.

Personally I've no issues with cmd+tab - I use it to cycle between 2-3 recently used apps, works fine for apps in the same space (which is the idea of per-project spaces).

Re:Workspaces for Mac 1.0 by Yaggo on Friday May 26, 2017 @01:22AM (#14422154)
I make heavy use of three-finger-swipe-up gesture to see all windows in the current space and thumbnails of spaces. (System prefs -> Trackpad -> More gestures)

The dock I keep minimized, not much use for it with spaces because it has global state.

Cmd+h is handy for hiding global apps out of way (can be revealed again with cmd+tab).

Re:Workspaces for Mac 1.0 by bosie on Thursday May 25, 2017 @05:03AM (#14416135)
look into Witch (https://manytricks.com/witch/). it let's you switch to windows rather than apps
Re:Workspaces for Mac 1.0 by andy_ppp on Thursday May 25, 2017 @01:15AM (#14415421)
Okay if you want to split hairs sure Safari can do it but will it keep all the windows about your project on the correct screen? What about Word or Photoshop or Mail or Skype or Sketch or Numbers or Whatever. Will any of these programs filter by project on the correct screen like I want them to? Nope.
Re:Workspaces for Mac 1.0 by Yaggo on Thursday May 25, 2017 @02:15AM (#14415604)
I have used project-per-virtual-desktop approach for years. I assign "shared apps" (Mail, Slack, etc) to all desktops (option-click via dock icon). My "project apps" are mostly terminal, text editor, and browser windows.

There are couple of issues¹, but this is still by far the best approach I can think of. Actually, I don't understand how other people can manage their stuff without per-project virtual desktops.

¹ cannot rename virtual desktops on macOS, not all apps can restore their windows on correct desktop after reboot, not all apps support multi-window workflow (e.g. Slack), "minimized windows" area in dock should be per-desktop instead of global

Re:Workspaces for Mac 1.0 by andy_ppp on Thursday May 25, 2017 @02:45AM (#14415705)
You've improved things a lot by showing how I can have apps can appear on multiple desktops, thanks!
Re:Workspaces for Mac 1.0 by mikecsh on Thursday May 25, 2017 @05:28AM (#14416200)
Thanks for this - I'll try it out, I hadn't realised you could have one app on multiple virtual desktops!
Re:Workspaces for Mac 1.0 by stephenr on Thursday May 25, 2017 @02:43AM (#14415699)
Have you considered using smart mailboxes and additional "viewer" Windows to have mail per-project space?
Re:Workspaces for Mac 1.0 by Yaggo on Friday May 26, 2017 @01:11AM (#14422122)
Too much hassle for me. I don't have a need for project specific emailing.

PS. Fluid.app is nice way to create project-specific native app instances from web applications, e.g. Trello, Jenkins, etc. Plays nicer with virtual desktops / cmd+tab than browser windows. (With the cost of memory.)

Re:Workspaces for Mac 1.0 by stephenr on Friday May 26, 2017 @04:04AM (#14422633)
Is Fluid still supported? I used it many years ago, but haven't had the need for a while.
Re:Workspaces for Mac 1.0 by Yaggo on Friday May 26, 2017 @04:15AM (#14422666)
Yes, it's Sierra compatible. (http://fluidapp.com)
Re:Workspaces for Mac 1.0 by stephenr on Thursday May 25, 2017 @01:29AM (#14415459)
They should leave the Windows where you put them, nothing more nothing less.
Re:Workspaces for Mac 1.0 by NoGravitas on Thursday May 25, 2017 @12:37PM (#14418366)
OS/2 used to have that feature. You could flag a folder as a project in the desktop environment. Anything you opened from that folder was part of that project. Close the project folder, everything opened from it closes. Open the project folder, everything you had open from it last time opens. And I'm pretty sure (it's been ~20 years since I used it) that it would also hide all everything if you hid the project folder.
Re:Workspaces for Mac 1.0 by mnm1 on Thursday May 25, 2017 @01:00AM (#14415376)
Have you looked at KDE activities? It's been around since 2011 or so (assuming it's still around in the latest version--seemed to be there a couple months ago).
Re:Workspaces for Mac 1.0 by stoolpigeon on Thursday May 25, 2017 @10:44AM (#14417609)
It is what I thought of right away and yes it is still a part of KDE.
Re:Workspaces for Mac 1.0 by dotancohen on Thursday May 25, 2017 @07:45AM (#14416701)
KDE has had the wonderful Activities feature for years. I believe that it even filters email messages in Kmail per Activity, though I still use Thunderbird.
Re:Workspaces for Mac 1.0 by sooheon on Wednesday May 24, 2017 @09:10PM (#14414669)
Interesting way to see it. I have a way to tab between projects in emacs (where only buffers pertaining to a project are shown), but having this system-wide would be good.
Re:Workspaces for Mac 1.0 by wcummings on Wednesday May 24, 2017 @09:14PM (#14414680)
Can you share your elisp?
Re:Workspaces for Mac 1.0 by sooheon on Wednesday May 24, 2017 @09:31PM (#14414726)
It is entirely someone else's elisp: https://github.com/nex3/perspective-el

If you don't need workspace specific buffers, eyebrowse[1] is a good (seemingly less buggy) alternative.

[1] https://github.com/wasamasa/eyebrowse

Re:Workspaces for Mac 1.0 by wcummings on Thursday May 25, 2017 @11:29AM (#14417901)
Eyebrowse looks good, I'll be happy if I can get it to select layouts w/ ido completing read. perspective supports that out of the box so worst case i can just that.

Thanks!

Re:Workspaces for Mac 1.0 by avdempsey on Wednesday May 24, 2017 @11:15PM (#14415073)
You might also check out spacemacs, it has perspectives pre-configured. Or...steal their elisp :)
Re:Workspaces for Mac 1.0 by wcummings on Thursday May 25, 2017 @03:39AM (#14415896)
I have way too much configuration accumulated to be bothered with shoehorning it into spacemacs.
Re:Workspaces for Mac 1.0 by Angostura on Thursday May 25, 2017 @04:52AM (#14416098)
Does multiple Desktops on Mac not do the trick?
Re:Workspaces for Mac 1.0 by JimDabell on Thursday May 25, 2017 @11:27AM (#14417889)
I do it the same way as you and it's a hell of a lot better than this. Everything is set up specifically for the client/project you're working on at the time – SSH keys, Git config, documents, mail accounts, passwords, you name it. All focused on the specific project and all isolated.

As far as the initial setup is concerned, this is fairly easily scriptable. Pretty much everything in System Preferences can be set using `defaults write`, there's loads of dotfile management tools, and most other things can be generated with templates using something like Cookiecutter. You can get a completely customised user account in a few seconds just by running a script and answering a few questions.

Re:Workspaces for Mac 1.0 by AlexKaul on Wednesday May 24, 2017 @10:49PM (#14414988)
Check Freeter. https://freeter.io
Re:Workspaces for Mac 1.0 by cridenour on Wednesday May 24, 2017 @11:19PM (#14415087)
I've been trying Freeter since it was posted here. It's definitely not bad, but I don't think it solves the isolation problem mentioned - but it does help me get my workspace back up after a restart.
Re:Workspaces for Mac 1.0 by wruza on Wednesday May 24, 2017 @09:22PM (#14414703)
Curious if copying homedir except Documents, Downloads, etc. and chown'ing could be sufficient. Maybe it should be more selective than that, but still possible?

Btw your idea is very cool. I have at least three contexts too: personal, job-related and somewhat job-related (trial periods that I always miss without touching, etc). I tired of relogging into different accounts and being careful with my From field, thanks for the hack. Cannot believe I didn't figure it out myself.

Re:Workspaces for Mac 1.0 by Joeri on Thursday May 25, 2017 @06:38AM (#14416437)
Depending on how the time travel feature of windows 10's fall 2017 update will work it might cover my issue: getting back to a past set of open documents, apps and webpages. Fingers crossed they make it powerful.

https://www.microsoft.com/en-us/windows/upcoming-features

Re:Workspaces for Mac 1.0 by udkl on Wednesday May 24, 2017 @09:20PM (#14414696)
If I'm on my Ubuntu machine I just use the different workspaces it provides and move between them.

On OSX you can achieve something similar with multi-desktops.

Re:Workspaces for Mac 1.0 by blackoil on Wednesday May 24, 2017 @09:35PM (#14414736)
MacOS desktops aren't isolated, they pollute task switcher and notifications. They are useful if you use trackpad for primary navigation and not keyboard.
Re:Workspaces for Mac 1.0 by lloyd-christmas on Friday May 26, 2017 @09:24AM (#14423806)
I agree with your first sentence, but I don't follow the second. I use `ctrl + ->` and `ctrl + <-` to switch desktops.
Re:Workspaces for Mac 1.0 by ReverseCold on Thursday May 25, 2017 @12:55AM (#14415364)
Windows also has multi desktop, but almost no one uses them for some reason.
Re:Workspaces for Mac 1.0 by eivarv on Thursday May 25, 2017 @08:05AM (#14416779)
I've been toying with project-management features in various contexts for years, and I'm actually working on something that would solve this problem, as it also manages application state within a context.

I have a functional prototype I'm planning to share as soon as I've polished up the UI.