Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Adding Profiles to Atom #6619

Closed
Closed

Description

@zet4

I was just thinking, in my workflow I work both at day and night, and depending on the time I prefer my editor to be either black or white, there are usually two sets of themes, but it looks like there isn't any easy and fast method of switching between this modes, so I am just wondering if it would be possible to create profiles for different modes of work and have shortcuts for them, they could also toggle installed packages aswell as selecting a particular theme for syntax and UI.

Activity

  1. thomasjo commented on May 3, 2015

    @thomasjo
    Contributor

    This would make for a great package.

  2. zet4 commented on May 3, 2015

    @zet4
    Author

    I think I might try making it myself then, I've never done a package before.

    I am mostly Python dev :)

  3. vramana commented on May 3, 2015

    @vramana

    +1. This might improve editor startup time. My machine is old. So, I have keep some of my plugins disabled. Having profiles to work for different languages would be awesome.

  4. pockata commented on May 3, 2015

    @pockata

    The "loading plugins on demand" part is something that I have been looking into in the past few days.

    The idea is that when I'm working on a Ruby project, I don't need the ternjs package and so on.. There could be a file in the project root (maybe .atom-project?) which will specify which plugins get blacklisted/whitelisted for the current project.

    The best way to stop loading unnecessary plugins is to edit the core files. Creating a plugin for the task won't be of much help. Although I will check if there's a particular order in which the plugins are loaded and see if I can mess with the package list from there.

    The custom init.coffee file is executed after all the plugins have been loaded so it's of no use to us here. Maybe introduce something like pre-init.coffee?

    It would be awesome if we can get this to work, because there are still people with old computers with HDDs that can't afford to load unnecessary plugins.

    I will continue to look into ways to implement this. I will create a theme in the forums to see what the community thinks about it.

  5. lee-dohm commented on May 4, 2015

    @lee-dohm
    Contributor

    My thought was actually that if you had project-specific configuration (which is something I've been pushing for), then all it would take is adding the "unnecessary packages" to the core.disabledPackages list in the config. When Atom launched, it wouldn't load or activate anything that was listed there.

  6. zet4 commented on May 4, 2015

    @zet4
    Author

    I was more thinking maybe have it go with a toggle for which way it
    works, white list or black list.
    That way if you have a python project (like me) you only have it run
    python related ones instead of disabling dozen of plugins.

    On 05/04/2015 05:53 PM, Lee Dohm wrote:

    My thought was actually that if you had project-specific configuration
    (which is something I've been pushing for), then all it would take is
    adding the "unnecessary packages" to the |core.disabledPackages| list
    in the config. When Atom launched, it wouldn't load or activate
    anything that was listed there.

    —
    Reply to this email directly or view it on GitHub
    #6619 (comment).

  7. mehcode commented on May 4, 2015

    @mehcode
    Contributor

    ^ Check out #6629 -- wouldn't that solve this in a much more configuration-less fashion

  8. rkingsbury commented on Aug 21, 2015

    @rkingsbury

    @mehcode It's a step in the right direction, but I think the requested feature goes beyond just which packages to load and includes configuration settings as well. In my case, if I'm working on Python code, I will want the Tree View visible and I will turn off the remove trailing whitespace plugin, but if I'm writing a paper in Markdown I want the sidebar off and whitespace on.

  9. happydemic commented on Oct 17, 2015

    @happydemic

    +1 . I too would find profiles very useful. In particular, writing code and writing text are such different activities that I want a completely different visual environment.

  10. sunnypatel commented on Dec 16, 2015

    @sunnypatel

    +1 Need it! Work uses 2 space tabs and I like to use 4 spaced hard tabs for personal work. Currently I have to keep switching back and forth. Could there be some sort of .atomrc file that atom will load depending on the project? This would be great because it can be committed versioning and all developers of a project could easily use the standard settings defined in the .atomrc file.

  11. RomFouq commented on Dec 16, 2015

    @RomFouq
  12. sunnypatel commented on Dec 16, 2015

    @sunnypatel

    @RomFouq Well that's for per file type. I want something similar but per project basis.

  13. 16 remaining items

  14. DanielJoyce commented on Feb 3, 2017

    @DanielJoyce

    Kinda kludgy.

    Some plugins don't play well together. For example RUST tokamak changes quite a bit of the UI. Its apparently a good rust editor, but there is no reason to load it if editing Typescript

    @brandoncurtis Do I have reinstall plugins for each profile? It would be nicer to fire up atom, create some profiles, and then choose which installed plugin is on for each profile

  15. brandoncurtis commented on Feb 3, 2017

    @brandoncurtis

    @DanielJoyce, Atom Package Manager can simplify this:

    export ATOM_HOME=~/.atom
    apm list --installed --bare > mypackages
    export ATOM_HOME=/path/to/new/atom/profile
    apm install --packages-file mypackages

    Atom.io supports creating a profile that you can use to mark your always-used packages:

    apm star <pkg-name>
    export ATOM_HOME=/path/to/new/atom/profile
    apm starred --install

  16. DanielJoyce commented on Feb 3, 2017

    @DanielJoyce
  17. LaurentGoderre commented on Feb 6, 2017

    @LaurentGoderre

    I suppose it is a way to do it but setting env var is not as clean as specify an execution flag.

  18. bgschiller commented on Feb 7, 2017

    @bgschiller

    Commenting with another use case:

    I teach a programming class two days a week, where I sometimes project my screen onto the wall. When I do that, I need light UI and Syntax themes (usually I prefer dark). I also need to disable linting and autocomplete, and crank up the font size.

    It would be nice to not have to toggle all of these settings every other day.

  19. lee-dohm commented on Feb 24, 2017

    @lee-dohm
    Contributor

    Thanks for the feedback on this everyone. While we agree that this is something that would be beneficial to a number of workflows, it isn't something that the Atom maintainer team is going to be working on in the near future. With that said, it is something that we would be open to a well-written pull request for. Because of this, I'm going to label this help-wanted and close it.

  20. LaurentGoderre commented on Mar 2, 2017

    @LaurentGoderre

    I was able to get profiles working. I copied everything in ~/.atom to ~/.atom/default and created empty folder for every of my profiles. I then created the following file ~/.atom/atom and aliased it using alias atom=~/.atom/atom

    #! /bin/sh
    atom_root=$HOME/.atom
    packages_file=package-list.txt
    profile=default
    
    while getopts ":p:" optname
      do
        case "$optname" in
          "p")
            profile=$OPTARG
    				break
            ;;
        esac
      done
    
    if [ ! -d $atom_root/$profile ]; then
    	profile=default
    fi
    
    echo "Using profile $profile"
    export ATOM_HOME="$atom_root/$profile"
    
    # Install packages if missing
    packages=$(apm list --installed -b)
    if [ -z "$packages" ]; then
    	apm install --packages-file $ATOM_HOME/$packages_file
    fi
    
    \atom $@
  21. vdun commented on Jun 29, 2017

    @vdun
  22. LaurentGoderre commented on Jun 30, 2017

    @LaurentGoderre

    @vdun pretty cool! However profiles can be more than just extensions. It can be settings as well

  23. cucumbur commented on Sep 14, 2017

    @cucumbur

    This seems like a hugely overlooked feature to me, especially with Atom's focus on customization and packages. Every IDE has some concept of profiles/workspaces, some text editors do, and everything from iTerm to Chrome to Netflix have this feature. Especially with the dawn of things like nuclide and atom-ide, which require a bunch of troubleshooting and/or disabling of packages and changing settings back and forth. Especially since some packages I DO use with nuclide, so I cant just disable them all without checking a note.

    I've seen in other github or atom.io discussions that people may claim that since Atom is trying to add in more loading of stuff only when needed, but that doesn't apply to something like for instance Nuclide. If I have my conflicting package and nuclide enabled, I'm just in broken nuclide. These packages that are total overhauls show the need for this type of feature.

    Usually when I see "customizable" I don't take that to mean write a bash/applescript bandage and hack it in by aliasing atom (does that even work when you open it by its icon?)

  24. jennaprice commented on Nov 15, 2017

    @jennaprice

    I see this is closed, but I am not sure what the solution was. I want to be able to load different plug ins that would conflict with each other. Like emmet and bootstrap. Sometimes I want one versus the other

  25. lee-dohm commented on Nov 15, 2017

    @lee-dohm
    Contributor
  26. wlwatkins commented on Jul 6, 2019

    @wlwatkins

    Have there been any advancement on this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions