mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Create new file with <N>
This commit is contained in:
@@ -228,6 +228,13 @@ impl FileTransferActivity {
|
||||
let pwd: PathBuf = self.local.wrkdir.clone();
|
||||
self.local_scan(pwd.as_path());
|
||||
}
|
||||
'n' | 'N' => {
|
||||
// New file
|
||||
self.input_mode = InputMode::Popup(PopupType::Input(
|
||||
String::from("New file"),
|
||||
Self::callback_new_file,
|
||||
));
|
||||
}
|
||||
'o' | 'O' => {
|
||||
// Edit local file
|
||||
if self.local.files.get(self.local.index).is_some() {
|
||||
@@ -446,6 +453,13 @@ impl FileTransferActivity {
|
||||
// Reload file entries
|
||||
self.reload_remote_dir();
|
||||
}
|
||||
'n' | 'N' => {
|
||||
// New file
|
||||
self.input_mode = InputMode::Popup(PopupType::Input(
|
||||
String::from("New file"),
|
||||
Self::callback_new_file,
|
||||
));
|
||||
}
|
||||
'o' | 'O' => {
|
||||
// Edit remote file
|
||||
if self.remote.files.get(self.remote.index).is_some() {
|
||||
|
||||
Reference in New Issue
Block a user