Skip to content

Added "Open with..." on Windows - #25

Merged
Jocs merged 2 commits into
marktext:masterfrom
SuperSandro2000:master
Mar 20, 2018
Merged

Jocs merged 2 commits into
marktext:masterfrom
SuperSandro2000:master

Conversation

@SuperSandro2000

@SuperSandro2000 SuperSandro2000 commented Mar 18, 2018 •

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
New feature? yes
Fixed tickets #20
License MIT

Adds the ability to directly open files in Windows.
I can't test other platforms has I don't use them/own them but it should be simple to add them if they didn't already work.
PS: this is my first work in .js so feedback is appreciated.
PPS: If you need someone with Windows again feel free to mention me.

@SuperSandro2000 SuperSandro2000 changed the title Added "Open with..." on Windows Added "Open with..." on Windows. Closes https://github.com/marktext/marktext/issues/20 Mar 18, 2018
@SuperSandro2000 SuperSandro2000 changed the title Added "Open with..." on Windows. Closes https://github.com/marktext/marktext/issues/20 Added "Open with..." on Windows. Closes #20 Mar 18, 2018
@SuperSandro2000 SuperSandro2000 changed the title Added "Open with..." on Windows. Closes #20 Added "Open with..." on Windows Mar 18, 2018
Comment thread src/main/index.js Outdated
// import { autoUpdater } from "electron-updater"

const openFilesCache = []
var openFilesCache = []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR.

var is not recommended, please use let to declare variables which will be changed latter.

@Jocs

Jocs commented Mar 19, 2018

Copy link
Copy Markdown
Member

Nice work

Comment thread src/main/index.js Outdated
// import { autoUpdater } from "electron-updater"

const openFilesCache = []
var openFilesCache = []

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops, @Jocs was faster 😆

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think next time I will use some code analysis tool.

@Jocs

Jocs commented Mar 19, 2018

Copy link
Copy Markdown
Member

@Ldoppea there are so many issues, PRs are welcome to fix them. 😼

@Jocs

Jocs commented Mar 19, 2018

Copy link
Copy Markdown
Member

@SuperSandro2000 I will release v0.7.16 after merge this PR.

typewriter: Alt + Cmd + T => Shift + Cmd + T
Source code: Alt + Cmd + S => Shift + Cmd + S
focus: Alt + Cmd + M => Shift + Cmd + F
@SuperSandro2000

Copy link
Copy Markdown
Contributor Author

Fixed it.

@Jocs would do some PR's but as you can see I am new to js and working on way to many other things but still... probably gonna see the occasional thing.

@Jocs

Jocs commented Mar 19, 2018 •

Copy link
Copy Markdown
Member

@SuperSandro2000 I think review other people's code or do some PRs to other project, Both way can learn from each other, So I really hope you can make some PRs to this project, There will always be questions for you.

@SuperSandro2000

SuperSandro2000 commented Mar 19, 2018 •

Copy link
Copy Markdown
Contributor Author

I will probably lurk arround on GitHub a bit. Can do it when I am not at home and bored (aka always). And if you need some help with windows mention me ;)

@SuperSandro2000

Copy link
Copy Markdown
Contributor Author

Failing due to fails in master branch and needed force push to update my master branch. (Why didn't I create a new branch?!) Compiled fine before.

@Jocs
Jocs merged commit 35e0958 into marktext:master Mar 20, 2018
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
* Opti: hotkey of typewriter | source code | focus changed. marktext#15

typewriter: Alt + Cmd + T => Shift + Cmd + T
Source code: Alt + Cmd + S => Shift + Cmd + S
focus: Alt + Cmd + M => Shift + Cmd + F

* Added "Open with..." on Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants