consular
consular copied to clipboard
Would like support for different profiles
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.).