Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for multiple profiles #7301

Merged
merged 3 commits into from
Jun 30, 2023

Conversation

LabhanshAgrawal
Copy link
Collaborator

Adds support for defining multiple profiles and a new tab dropdown
Right now, it supports defining different shell, shellArgs, env and workingDirectory across profiles.

E.g.
Screenshot 2023-06-29 at 11 21 42

Fun fact - you can use /usr/bin/ssh as shell too.

I have not added keyboard shortcuts yet, will have to think more about that. Right now the only way to open a different profile is to go through the new tab dropdown, once opened splits and new tabs should follow current focused pane's profile.

UI config options for profiles to come later.

Fixes #1147
Fixes #3436
Fixes #6448

let argPath = process.argv[1];
if (argPath && process.platform === 'win32') {
if (/[a-zA-Z]:"/.test(argPath)) {
argPath = argPath.replace('"', sep);

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding

This replaces only the first occurrence of '"'.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@LabhanshAgrawal LabhanshAgrawal merged commit 14e7679 into vercel:canary Jun 30, 2023
@LabhanshAgrawal LabhanshAgrawal deleted the profiles branch June 30, 2023 04:44
@github-actions
Copy link

Hi there,
Thank you for contributing to Hyper!
You can get the build artifacts from here.
Here are screenshots of Hyper built from this pr.
Imgur ImagesImgur Images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant