You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose current file upload as a shortcut-mappable command (#404)
* Expose current-file upload as a shortcut command
The bounty asks for a shortcut-driven upload path. NppFTP already had the correct current-file upload behavior behind the toolbar and context-menu handler, so this extracts that path into FTPWindow::UploadCurrentFile and exposes it through the Notepad++ plugin command list for Shortcut Mapper assignment.
Constraint: Windows/Notepad++ plugin behavior cannot be runtime-tested from this macOS environment.
Rejected: Add a hard-coded default shortcut | Notepad++ lets users map plugin commands, and default shortcuts risk colliding with editor or user mappings.
Rejected: Implement arbitrary file-list upload | the issue discussion identifies active-current-file upload as the useful bounded shortcut path.
Confidence: medium
Scope-risk: narrow
Directive: Preserve the existing toolbar upload behavior; shortcut command should call the same upload path.
Tested: repo_vet.py static safety scan
Tested: git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --check
Not-tested: Windows Notepad++ build/runtime and actual FTP upload flow.
* Preserve upload path lookup for current-file command
The shared upload helper must not narrow the existing tree-menu behavior. The previous code resolved the current Notepad++ path at invocation time, so the extracted helper now does the same instead of depending on the cached toolbar-enabled state.
Constraint: Follow-up came from code review before runtime validation was available.
Confidence: medium
Scope-risk: narrow
Tested: git -c core.whitespace=blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol diff --check
Not-tested: Windows Notepad++ build/runtime and actual FTP upload flow.
---------
Co-authored-by: dalbee <dalbee@dalbee.local>
Copy file name to clipboardExpand all lines: docs/index.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,8 @@ The toolbar provides the following buttons:
76
76
*_Settings_: Access settings dialogs.
77
77
*_Show Message Window_: Hide or Show the messages window.
78
78
79
+
The same current-file upload action is also available from the Notepad++ **Plugins > NppFTP > Upload Current File** menu item. Assign a shortcut to that command with Notepad++'s Shortcut Mapper if you want to upload the active local file without clicking the NppFTP toolbar.
80
+
79
81
## Treeview
80
82
If an FTP session is active, the treeview will show the files on the server. Some actions of the toolbar depend on the selected object in the treeview (see toolbar). Double-clicking on a directory will show its contents. Double-clicking on a file will download it to the cache and open it.
0 commit comments