Quick command implementation (#472)

* Separating "SSH Info" and "Quick Launch", and updating translations.

* Adding "Quick Launch" to menu.

* Auto-complete, initial version.

* Builds, but not finished.

* Improved, but there are still some bugs...

* Minor changes.

* Refactroing request/response identifiers.

* Improving command history.

* Minor refactoring.

* Deleting history by using "Del" key.

* Handling mosh special case in quick commands.

* SSH command handled as any other command in the path.

* New resource strings.

* Fixing quick command links.

* Fixing after-merging bugs.

* Improving filtering.

* Finishing filtering.

* Changing placeholder text.

* Minor refactoring.

* Updating resources.

* Renaming NewRemoteTab back to NewSshTab.
This commit is contained in:
Aleksandar Pesic authored and Felix committed 2019-08-08 08:02:09 +02:00
1 parent 93e52f3209
commit e88fb78e9d
61 files changed
+2100 -706

No files matched your search

@@ -60,6 +60,7 @@ namespace FluentTerminal.App.ViewModels.Profiles
LoadFromProfile(value);
}
}
public ObservableCollection<TabTheme> TabThemes { get; }
public ObservableCollection<TerminalTheme> TerminalThemes { get; }
@@ -239,12 +240,13 @@ namespace FluentTerminal.App.ViewModels.Profiles
Initialize(profile);
}
protected virtual void CopyToProfile(ShellProfile profile)
protected virtual Task CopyToProfileAsync(ShellProfile profile)
{
profile.LineEndingTranslation = _lineEndingTranslation;
profile.UseConPty = _useConPty;
profile.TerminalThemeId = _terminalThemeId;
profile.TabThemeId = _tabThemeId;
return Task.CompletedTask;
}
public virtual Task<string> ValidateAsync()
@@ -279,7 +281,7 @@ namespace FluentTerminal.App.ViewModels.Profiles
if (acceptIfInvalid || string.IsNullOrEmpty(error))
{
CopyToProfile(Model);
await CopyToProfileAsync(Model);
}
return error;