Repository navigation
Conversation
In order to use Notepad++ with the new Github Desktop, support for openning a directory is required. Notepad++ already has the ability to open a directory as a workspace, however this is not possible from the command line as the default behaviour is to open all files in any supplied directory. A new flag, "-dirAsWorkspace" has been added which will treat any directory in the CLI fileName input as a workspace and open it as such. Any files will be treated as files and openned as usual.
| pBuf->setLangType(lt); | ||
| folderPaths.push_back(path); | ||
| } | ||
| else { |
There was a problem hiding this comment.
bad coding style regarding Notepad++ coding style:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/CONTRIBUTING.md#general
| continue; | ||
|
|
||
| lastOpened = bufID; | ||
| if (workspace && ::PathIsDirectory(pFn)) { |
There was a problem hiding this comment.
bad coding style regarding Notepad++ coding style:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/CONTRIBUTING.md#general
| LangType lt = pCmdParams->_langType; | ||
| int ln = pCmdParams->_line2go; | ||
| int cn = pCmdParams->_column2go; | ||
| int cpos = pCmdParams->_pos2go; |
There was a problem hiding this comment.
Make your modification compact - don't reformat source code in your request. It makes code review more difficult.
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/CONTRIBUTING.md#guidelines-for-pull-requests
|
I really don't think you need to change the |
… panel Add the ability to open folders in "folder as workspace" panel via command line argument "-openFoldersAsWorkspace". Example: notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02 The above command will launch notepad++ with folder as workspace panel by opening myProj01 and myProj02 in panel. Close #4253, close #5100
… panel Add the ability to open folders in "folder as workspace" panel via command line argument "-openFoldersAsWorkspace". Example: notepad++ -openFoldersAsWorkspace c:\src\myProj01 c:\src\myProj02 The above command will launch notepad++ with folder as workspace panel by opening myProj01 and myProj02 in panel. Close notepad-plus-plus#4253, close notepad-plus-plus#5100
In order to use Notepad++ as an editor for the new Github Desktop, support for opening a directory is required.
Notepad++ already has the ability to open a directory as a workspace, however this is not possible from the command line as the default behaviour is to open all files in any supplied directory.
In this commit, a new flag, "-dirAsWorkspace" has been added which will treat any directory in the CLI fileName input as a workspace and open it as such. Any files will be treated as files and opened as usual.
Basically this PR would allow desktop/desktop#4120 to be completed and get Notepad++ back as an editor in Github Desktop.