CommandPalette WIP
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace FileTime.App.Core.Extensions;
|
||||
|
||||
public static class DisposableExtensions
|
||||
|
||||
@@ -6,4 +6,5 @@ public interface IIdentifiableUserCommandService
|
||||
{
|
||||
void AddIdentifiableUserCommandFactory(string identifier, Func<IIdentifiableUserCommand> commandFactory);
|
||||
IIdentifiableUserCommand GetCommand(string identifier);
|
||||
IReadOnlyCollection<string> GetCommandIdentifiers();
|
||||
}
|
||||
@@ -3,4 +3,5 @@ namespace FileTime.App.Core.UserCommand;
|
||||
public interface IIdentifiableUserCommand : IUserCommand
|
||||
{
|
||||
string UserCommandID { get; }
|
||||
//string Title { get; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
public class OpenCommandPaletteCommand : IIdentifiableUserCommand
|
||||
{
|
||||
public const string CommandName = "open_command_palette";
|
||||
public static OpenCommandPaletteCommand Instance { get; } = new ();
|
||||
|
||||
private OpenCommandPaletteCommand()
|
||||
{
|
||||
}
|
||||
|
||||
public string UserCommandID => CommandName;
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
using DynamicData;
|
||||
using FileTime.App.Core.Models;
|
||||
using FileTime.Core.Models;
|
||||
using FileTime.Core.Services;
|
||||
using InitableService;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using FileTime.Core.Models;
|
||||
using FileTime.Core.Timeline;
|
||||
|
||||
namespace FileTime.App.Core.ViewModels.Timeline;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user