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

Feature Request: Get file paths from all open tabs #10123

Closed
mere-human opened this issue Jul 8, 2021 · 6 comments
Closed

Feature Request: Get file paths from all open tabs #10123

mere-human opened this issue Jul 8, 2021 · 6 comments

Comments

@mere-human
Copy link
Contributor

Description of the Issue

I want have an ability to copy paths of all opened documents.
This was discussed on a community forum:
https://community.notepad-plus-plus.org/topic/21447/how-to-get-file-paths-from-all-open-tabs
There are other suggestion there. Please, see my suggestion below.

Actual Behavior

This copies file path only for current document:
Edit > Copy to Clipboard > Current Full File path to Clipboard

Expected Behavior

Add a way to copy the file path for all opened document.

Suggestion:
Make the text from Window > Windows copyable.
It already supports multi-select. The only thing missing is Ctrl+C and put a list of of file paths to clipboard.
image

Debug Information

Notepad++ v8 (64-bit)
Build time : May 27 2021 - 22:10:00
Path : C:\Program Files\npp-portable\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 2009
OS Build : 19043.1052
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll HexEditor.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll NppMarkdownPanel.dll XMLTools.dll

mere-human added a commit to mere-human/notepad-plus-plus that referenced this issue Jul 19, 2021
Ctrl+C copies selected path names.
Context menu allows to copy either name or path.

Fix notepad-plus-plus#10123
@donho donho closed this as completed in 8e38b9d Jul 21, 2021
@ArkadiuszMichalski
Copy link
Contributor

ArkadiuszMichalski commented Aug 1, 2021

@mere-human
We don't have any separator between copied names/paths. In Search Panel, when we copied paths, separator is new line (CRLF). This is probably the most sensible in the further processing of this copy.

Edit: this happend when I past to Notepad, but not for other editors. Weird, when I copy paths from Search Panel to Notepad problem not exists, any thoughts?

@mere-human
Copy link
Contributor Author

@mere-human
We don't have any separator between copied names/paths. In Search Panel, when we copied paths, separator is new line (CRLF). This is probably the most sensible in the further processing of this copy.

Edit: this happend when I past to Notepad, but not for other editors. Weird, when I copy paths from Search Panel to Notepad problem not exists, any thoughts?

@ArkadiuszMichalski This is because LF is used as a separator for copied paths.
It's a pity that Notepad doesn't understand these. But luckily, most of the modern text editors including Notepad++ do.
If this is really a problem, you can create a new issue and I can change the separator to CRLF.

@ArkadiuszMichalski
Copy link
Contributor

If this is really a problem, you can create a new issue and I can change the separator to CRLF.

I don't know, in general, the CRLF combination in Windows is probably the right one, and since Notepad++ is created for Windows ...

This Window is modal, so after copying I instinctively pasted it into Notepad, and here I got merged all in one line. Since copying from Search Panel works in any program, maybe it is worth doing the same here.

@mere-human
Copy link
Contributor Author

@ArkadiuszMichalski What version of Notepad do you use (Help > About Notepad)?
Could you place the screenshot of how it looks?
I tried it locally, and it seems like Notepad handles the LF just fine.

image

@ArkadiuszMichalski
Copy link
Contributor

Ahh sorry, on Win7, looks like Notepad in Win10 has been improved.

@mere-human
Copy link
Contributor Author

Ahh sorry, on Win7, looks like Notepad in Win10 has been improved.

Anyway, I've already implemented a fix for consistency.

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 a pull request may close this issue.

2 participants