Skip to content

Commit

Permalink
Changed the way ueli opens up files/folders/webpages (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Jul 19, 2018
1 parent 93a19b9 commit 156fade
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe(FileExecutionCommandBuilder.name, (): void => {
describe(FileExecutionCommandBuilder.buildWindowsFileExecutionCommand.name, (): void => {
it("should build the file execution command correctly for windows", (): void => {
const filePath = "C:\\Users\\darth.vader\\file";
const expected = `start "" "${filePath}"`;
const expected = `start explorer "${filePath}"`;

const actual = FileExecutionCommandBuilder.buildWindowsFileExecutionCommand(filePath);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe(OpenUrlWithDefaultBrowserCommandBuilder.name, (): void => {

describe(OpenUrlWithDefaultBrowserCommandBuilder.buildWindowsCommand.name, (): void => {
const url = "https://github.com";
const expected = `start "" "${url}"`;
const expected = `start explorer "${url}"`;

const actual = OpenUrlWithDefaultBrowserCommandBuilder.buildWindowsCommand(url);

Expand Down
2 changes: 1 addition & 1 deletion src/ts/builders/file-execution-command-builder.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class FileExecutionCommandBuilder {
public static buildWindowsFileExecutionCommand(filePath: string): string {
return `start "" "${filePath}"`;
return `start explorer "${filePath}"`;
}

public static buildMacOsFileExecutionCommand(filePath: string): string {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export class OpenUrlWithDefaultBrowserCommandBuilder {
public static buildWindowsCommand(url: string): string {
return `start "" "${url}"`;
return `start explorer "${url}"`;
}

public static buildMacCommand(url: string): string {
Expand Down

0 comments on commit 156fade

Please sign in to comment.