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

Would like support for different profiles #80

@cfeduke

Description

@cfeduke

I have a Termfile in a project my friend (MacBook Air) works on with me, and I also work on both a MacBook Pro and Mac Pro. All of these computers have different resolutions so it makes the :bounds parameter for new windows a challenge. We've hacked around this like so...

module Boundary
  hname = `hostname`

  if hname =~ /Charles-Fedukes-MacBook-Pro.local/
    MAIN_WINDOW = [0, 22, 928, 948]
    UPPER_RIGHT = [932, 23, 1678, 403]
    LOWER_RIGHT = [932, 408, 1678, 950]
  elsif hname =~ /Kanako.local/
    MAIN_WINDOW = [0, 22, 700, 870]
    UPPER_RIGHT = [708, 22, 1438, 400]
    LOWER_RIGHT = [708, 408, 1438, 870]
  end
end

... but would like something a little bit more formal. Either a Termfile.bounds file we can leave out of source control or [more desirable] DSL support for different profile configurations.

Perhaps support for percentages instead of fixed coordinates would also do, or named regions (:north_west, :east, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions