Skip to content

Add Notepad++ External Editor for Windows - #4120

Closed
ergaziz wants to merge 8 commits into
desktop:masterfrom
ergaziz:master
Closed

ergaziz wants to merge 8 commits into
desktop:masterfrom
ergaziz:master

Conversation

@ergaziz

@ergaziz ergaziz commented Feb 27, 2018

Copy link
Copy Markdown

No description provided.

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 27, 2018
@niik

niik commented Feb 28, 2018

Copy link
Copy Markdown
Member

Hey @ergaziz, seems like you got a few conflicts here after I merged #3962. Mind taking a stab at resolving those? Please let us know if you'd like any assistance.

@ergaziz

ergaziz commented Feb 28, 2018 via email

Copy link
Copy Markdown
Author

Comment thread app/src/lib/editors/win32.ts Outdated
case ExternalEditor.CFBuilder:
return Path.join(installLocation, 'CFBuilder.exe')
case ExternalEditor.NotepadPlusPlus:
return Path.join(installLocation, '')

This comment was marked as spam.

Comment thread app/src/lib/editors/win32.ts Outdated
if (editor === ExternalEditor.NotepadPlusPlus) {
const displayName = getKeyOrEmpty(keys, 'DisplayName')
const publisher = getKeyOrEmpty(keys, 'Publisher')
const installLocation = getKeyOrEmpty(keys, 'DisplayIcon')

This comment was marked as spam.

This comment was marked as spam.

@niik niik self-assigned this Feb 28, 2018
@ergaziz

ergaziz commented Feb 28, 2018 •

Copy link
Copy Markdown
Author

We need to open notepad++ with -openSession argument in order to open repo in workspace instead of individual files.

C:\Program Files (x86)\Notepad++>"notepad++.exe" -openSession C:\myrepo 

Working on it.

Edit: -openSession doesn't work that way, I don't know what I was thinking.
notepad++ seems like does not have "Folder as Workspace" feature when running from command.
Any ideas about how to solve?

@ergaziz

ergaziz commented Mar 2, 2018

Copy link
Copy Markdown
Author

We are blocked here due to notepad++ unfortunately. Turns out that we were never able to open notepad++ in "Folder as Workspace" mode from command line. It can be done via File-> "Open Folder as Workspace" only.
npp_folderasws

Opened issue to notepad++ here

For now, there seems like nothing we can do and I think we can cancel this issue. @niik , @iAmWillShepherd what do you think?

@niik

niik commented Mar 2, 2018

Copy link
Copy Markdown
Member

For now, there seems like nothing we can do and I think we can cancel this issue. @niik , @iAmWillShepherd what do you think?

I'm afraid I know nothing about Notepad++. What's the behavior with this current solution? Does it just open in a new window? I think you'll know best whether that's better than not supporting at all.

@ergaziz

ergaziz commented Mar 2, 2018

Copy link
Copy Markdown
Author

I didn't know much either, just some of my friends are using it, not me... 😃
Current solution tries to open each file in the repo as individual files. I think it doesn't bring much functionality, it causes such things instead :
desktop_npp

@j-f1

j-f1 commented Mar 2, 2018

Copy link
Copy Markdown
Contributor

@ergaziz I’d recommend closing this PR for now, then reopening it and picking up where you left off once they add support.

@Seb33300

Copy link
Copy Markdown

Hello, the feature has been added to the latest Notepad++ 7.7.1 release:
notepad-plus-plus/notepad-plus-plus@57a49c3

@Seb33300

Copy link
Copy Markdown

Or maybe this has been added only to Notpad++ 7.8 regarding the changelog:

  1. Add the command line argument "-openFoldersAsWorkspace" to open folders in "folder as workspace" panel.
    Example: notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants