Add launcher item notes
This commit is contained in:
@@ -183,6 +183,7 @@
|
|||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
<TextBlock Text="Title" VerticalAlignment="Center" Margin="0,0,8,8"/>
|
<TextBlock Text="Title" VerticalAlignment="Center" Margin="0,0,8,8"/>
|
||||||
@@ -213,20 +214,32 @@
|
|||||||
Padding="8,4"
|
Padding="8,4"
|
||||||
Margin="0,0,0,8"/>
|
Margin="0,0,0,8"/>
|
||||||
|
|
||||||
<TextBlock Text="Icon Path" Grid.Row="5" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
<TextBlock Text="Notes" Grid.Row="5" VerticalAlignment="Top" Margin="0,4,8,8"/>
|
||||||
<TextBox x:Name="IconPathBox" Grid.Row="5" Grid.Column="1" Margin="0,0,8,8"
|
<TextBox x:Name="NotesBox"
|
||||||
|
Grid.Row="5"
|
||||||
|
Grid.Column="1"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
Margin="0,0,0,8"
|
||||||
|
AcceptsReturn="True"
|
||||||
|
MinHeight="54"
|
||||||
|
TextWrapping="Wrap"
|
||||||
|
VerticalScrollBarVisibility="Auto"
|
||||||
TextChanged="PreviewField_Changed"/>
|
TextChanged="PreviewField_Changed"/>
|
||||||
<StackPanel Grid.Row="5" Grid.Column="2" Orientation="Horizontal" Margin="0,0,0,8">
|
|
||||||
|
<TextBlock Text="Icon Path" Grid.Row="6" VerticalAlignment="Center" Margin="0,0,8,0"/>
|
||||||
|
<TextBox x:Name="IconPathBox" Grid.Row="6" Grid.Column="1" Margin="0,0,8,8"
|
||||||
|
TextChanged="PreviewField_Changed"/>
|
||||||
|
<StackPanel Grid.Row="6" Grid.Column="2" Orientation="Horizontal" Margin="0,0,0,8">
|
||||||
<Button Content="Icon" Click="BrowseIcon_Click" Padding="8,4" Margin="0,0,6,0"/>
|
<Button Content="Icon" Click="BrowseIcon_Click" Padding="8,4" Margin="0,0,6,0"/>
|
||||||
<Button Content="Reset" Click="ResetIcon_Click" Padding="8,4"/>
|
<Button Content="Reset" Click="ResetIcon_Click" Padding="8,4"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Text="Selected Item Display" Grid.Row="6" VerticalAlignment="Center" Margin="0,0,8,8"/>
|
<TextBlock Text="Selected Item Display" Grid.Row="7" VerticalAlignment="Center" Margin="0,0,8,8"/>
|
||||||
<ComboBox x:Name="ItemDisplayModeBox" Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2"
|
<ComboBox x:Name="ItemDisplayModeBox" Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2"
|
||||||
Margin="0,0,0,8" SelectionChanged="ItemDisplayModeBox_SelectionChanged"/>
|
Margin="0,0,0,8" SelectionChanged="ItemDisplayModeBox_SelectionChanged"/>
|
||||||
|
|
||||||
<TextBlock Text="Launch Options" Grid.Row="7" VerticalAlignment="Top" Margin="0,2,8,8"/>
|
<TextBlock Text="Launch Options" Grid.Row="8" VerticalAlignment="Top" Margin="0,2,8,8"/>
|
||||||
<StackPanel Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,0,8">
|
<StackPanel Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2" Margin="0,0,0,8">
|
||||||
<CheckBox x:Name="RunAsAdminBox"
|
<CheckBox x:Name="RunAsAdminBox"
|
||||||
Content="Run as administrator"
|
Content="Run as administrator"
|
||||||
Margin="0,0,0,6"
|
Margin="0,0,0,6"
|
||||||
@@ -238,8 +251,8 @@
|
|||||||
Unchecked="LaunchOptionBox_Changed"/>
|
Unchecked="LaunchOptionBox_Changed"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock Text="Preview" Grid.Row="8" VerticalAlignment="Top" Margin="0,4,8,0"/>
|
<TextBlock Text="Preview" Grid.Row="9" VerticalAlignment="Top" Margin="0,4,8,0"/>
|
||||||
<Border Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="2"
|
<Border Grid.Row="9" Grid.Column="1" Grid.ColumnSpan="2"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
BorderBrush="{DynamicResource AppBorderBrush}"
|
BorderBrush="{DynamicResource AppBorderBrush}"
|
||||||
Background="{DynamicResource AppSurfaceBrush}"
|
Background="{DynamicResource AppSurfaceBrush}"
|
||||||
|
|||||||
@@ -614,6 +614,7 @@ public partial class MainWindow : Window
|
|||||||
TargetBox.Text = item.Target;
|
TargetBox.Text = item.Target;
|
||||||
ArgumentsBox.Text = item.Arguments ?? "";
|
ArgumentsBox.Text = item.Arguments ?? "";
|
||||||
WorkingFolderBox.Text = item.WorkingFolder ?? "";
|
WorkingFolderBox.Text = item.WorkingFolder ?? "";
|
||||||
|
NotesBox.Text = item.Notes ?? "";
|
||||||
IconPathBox.Text = item.IconPath ?? "";
|
IconPathBox.Text = item.IconPath ?? "";
|
||||||
loadedAutoIconPath = GetAutomaticIconPath(item);
|
loadedAutoIconPath = GetAutomaticIconPath(item);
|
||||||
ItemDisplayModeBox.SelectedItem = item.DisplayMode;
|
ItemDisplayModeBox.SelectedItem = item.DisplayMode;
|
||||||
@@ -634,6 +635,7 @@ public partial class MainWindow : Window
|
|||||||
TargetBox.Text = "";
|
TargetBox.Text = "";
|
||||||
ArgumentsBox.Text = "";
|
ArgumentsBox.Text = "";
|
||||||
WorkingFolderBox.Text = "";
|
WorkingFolderBox.Text = "";
|
||||||
|
NotesBox.Text = "";
|
||||||
IconPathBox.Text = "";
|
IconPathBox.Text = "";
|
||||||
loadedAutoIconPath = null;
|
loadedAutoIconPath = null;
|
||||||
ItemDisplayModeBox.SelectedItem = controller?.Config.DisplayMode;
|
ItemDisplayModeBox.SelectedItem = controller?.Config.DisplayMode;
|
||||||
@@ -660,6 +662,7 @@ public partial class MainWindow : Window
|
|||||||
selectedItem.WorkingFolder = LauncherController.CanUseLaunchOptions(selectedItem.Type) && !string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
selectedItem.WorkingFolder = LauncherController.CanUseLaunchOptions(selectedItem.Type) && !string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
||||||
? WorkingFolderBox.Text.Trim()
|
? WorkingFolderBox.Text.Trim()
|
||||||
: null;
|
: null;
|
||||||
|
selectedItem.Notes = string.IsNullOrWhiteSpace(NotesBox.Text) ? null : NotesBox.Text.Trim();
|
||||||
EnsureAutomaticIconPath();
|
EnsureAutomaticIconPath();
|
||||||
selectedItem.IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim();
|
selectedItem.IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim();
|
||||||
if (ItemDisplayModeBox.SelectedItem is LauncherDisplayMode itemMode)
|
if (ItemDisplayModeBox.SelectedItem is LauncherDisplayMode itemMode)
|
||||||
@@ -975,6 +978,7 @@ public partial class MainWindow : Window
|
|||||||
Target = item.Target,
|
Target = item.Target,
|
||||||
Arguments = item.Arguments,
|
Arguments = item.Arguments,
|
||||||
WorkingFolder = item.WorkingFolder,
|
WorkingFolder = item.WorkingFolder,
|
||||||
|
Notes = item.Notes,
|
||||||
IconPath = item.IconPath,
|
IconPath = item.IconPath,
|
||||||
IsFavorite = item.IsFavorite,
|
IsFavorite = item.IsFavorite,
|
||||||
IsDisabled = item.IsDisabled,
|
IsDisabled = item.IsDisabled,
|
||||||
@@ -1935,6 +1939,7 @@ public partial class MainWindow : Window
|
|||||||
!string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
!string.IsNullOrWhiteSpace(WorkingFolderBox.Text)
|
||||||
? WorkingFolderBox.Text.Trim()
|
? WorkingFolderBox.Text.Trim()
|
||||||
: null,
|
: null,
|
||||||
|
Notes = string.IsNullOrWhiteSpace(NotesBox.Text) ? null : NotesBox.Text.Trim(),
|
||||||
IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim(),
|
IconPath = string.IsNullOrWhiteSpace(IconPathBox.Text) ? null : IconPathBox.Text.Trim(),
|
||||||
IsFavorite = selectedItem.IsFavorite,
|
IsFavorite = selectedItem.IsFavorite,
|
||||||
IsDisabled = selectedItem.IsDisabled,
|
IsDisabled = selectedItem.IsDisabled,
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ public sealed class LauncherItem
|
|||||||
|
|
||||||
public string? WorkingFolder { get; set; }
|
public string? WorkingFolder { get; set; }
|
||||||
|
|
||||||
|
public string? Notes { get; set; }
|
||||||
|
|
||||||
public string? IconPath { get; set; }
|
public string? IconPath { get; set; }
|
||||||
|
|
||||||
public bool IsFavorite { get; set; }
|
public bool IsFavorite { get; set; }
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ Download the compiled Windows release from:
|
|||||||
- Right-click app/file entries to open their containing folder
|
- Right-click app/file entries to open their containing folder
|
||||||
- Optional run-as-administrator mode for app and file entries
|
- Optional run-as-administrator mode for app and file entries
|
||||||
- Optional working folder and start-minimized launch options for app and file entries
|
- Optional working folder and start-minimized launch options for app and file entries
|
||||||
|
- Per-item notes, visible in launcher tooltips and searchable from the popup
|
||||||
- Validate missing app, file, and folder targets from Settings
|
- Validate missing app, file, and folder targets from Settings
|
||||||
- Export and import selected items or menu sections
|
- Export and import selected items or menu sections
|
||||||
- Sort a selected menu or item level alphabetically
|
- Sort a selected menu or item level alphabetically
|
||||||
|
|||||||
@@ -181,6 +181,7 @@ public sealed class LauncherController : IDisposable
|
|||||||
Target = item.Target,
|
Target = item.Target,
|
||||||
Arguments = item.Arguments,
|
Arguments = item.Arguments,
|
||||||
WorkingFolder = item.WorkingFolder,
|
WorkingFolder = item.WorkingFolder,
|
||||||
|
Notes = item.Notes,
|
||||||
IconPath = item.IconPath,
|
IconPath = item.IconPath,
|
||||||
IsFavorite = false,
|
IsFavorite = false,
|
||||||
IsDisabled = false,
|
IsDisabled = false,
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
<Authors>Ray Berezowski</Authors>
|
<Authors>Ray Berezowski</Authors>
|
||||||
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
|
<ApplicationIcon>Assets\AppIcon.ico</ApplicationIcon>
|
||||||
<Version>1.0.1</Version>
|
<Version>1.0.1</Version>
|
||||||
<AssemblyVersion>1.0.1.20</AssemblyVersion>
|
<AssemblyVersion>1.0.1.21</AssemblyVersion>
|
||||||
<FileVersion>1.0.1.20</FileVersion>
|
<FileVersion>1.0.1.21</FileVersion>
|
||||||
<InformationalVersion>1.0.1</InformationalVersion>
|
<InformationalVersion>1.0.1</InformationalVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -473,6 +473,11 @@ public partial class LauncherPopup : Window
|
|||||||
AddToolTipLine(panel, $"Working folder: {item.WorkingFolder}");
|
AddToolTipLine(panel, $"Working folder: {item.WorkingFolder}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(item.Notes))
|
||||||
|
{
|
||||||
|
AddToolTipLine(panel, $"Notes: {item.Notes}");
|
||||||
|
}
|
||||||
|
|
||||||
if (item.IsFavorite)
|
if (item.IsFavorite)
|
||||||
{
|
{
|
||||||
AddToolTipLine(panel, "Pinned to top");
|
AddToolTipLine(panel, "Pinned to top");
|
||||||
@@ -526,6 +531,7 @@ public partial class LauncherPopup : Window
|
|||||||
return item.Title.Contains(query, StringComparison.OrdinalIgnoreCase) ||
|
return item.Title.Contains(query, StringComparison.OrdinalIgnoreCase) ||
|
||||||
item.Target.Contains(query, StringComparison.OrdinalIgnoreCase) ||
|
item.Target.Contains(query, StringComparison.OrdinalIgnoreCase) ||
|
||||||
(item.Arguments?.Contains(query, StringComparison.OrdinalIgnoreCase) ?? false) ||
|
(item.Arguments?.Contains(query, StringComparison.OrdinalIgnoreCase) ?? false) ||
|
||||||
|
(item.Notes?.Contains(query, StringComparison.OrdinalIgnoreCase) ?? false) ||
|
||||||
parentPath.Contains(query, StringComparison.OrdinalIgnoreCase);
|
parentPath.Contains(query, StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
"Target": "",
|
"Target": "",
|
||||||
"Arguments": null,
|
"Arguments": null,
|
||||||
"WorkingFolder": null,
|
"WorkingFolder": null,
|
||||||
|
"Notes": null,
|
||||||
"IconPath": null,
|
"IconPath": null,
|
||||||
"IsFavorite": false,
|
"IsFavorite": false,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
@@ -23,6 +24,7 @@
|
|||||||
"Target": "%USERPROFILE%\\Documents",
|
"Target": "%USERPROFILE%\\Documents",
|
||||||
"Arguments": null,
|
"Arguments": null,
|
||||||
"WorkingFolder": null,
|
"WorkingFolder": null,
|
||||||
|
"Notes": null,
|
||||||
"IconPath": "%USERPROFILE%\\Documents",
|
"IconPath": "%USERPROFILE%\\Documents",
|
||||||
"IsFavorite": false,
|
"IsFavorite": false,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
@@ -37,6 +39,7 @@
|
|||||||
"Target": "%USERPROFILE%\\Downloads",
|
"Target": "%USERPROFILE%\\Downloads",
|
||||||
"Arguments": null,
|
"Arguments": null,
|
||||||
"WorkingFolder": null,
|
"WorkingFolder": null,
|
||||||
|
"Notes": null,
|
||||||
"IconPath": "%USERPROFILE%\\Downloads",
|
"IconPath": "%USERPROFILE%\\Downloads",
|
||||||
"IsFavorite": false,
|
"IsFavorite": false,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
@@ -53,6 +56,7 @@
|
|||||||
"Target": "",
|
"Target": "",
|
||||||
"Arguments": null,
|
"Arguments": null,
|
||||||
"WorkingFolder": null,
|
"WorkingFolder": null,
|
||||||
|
"Notes": null,
|
||||||
"IconPath": null,
|
"IconPath": null,
|
||||||
"IsFavorite": false,
|
"IsFavorite": false,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
@@ -66,6 +70,7 @@
|
|||||||
"Target": "notepad.exe",
|
"Target": "notepad.exe",
|
||||||
"Arguments": null,
|
"Arguments": null,
|
||||||
"WorkingFolder": null,
|
"WorkingFolder": null,
|
||||||
|
"Notes": "Simple starter app entry.",
|
||||||
"IconPath": "notepad.exe",
|
"IconPath": "notepad.exe",
|
||||||
"IsFavorite": false,
|
"IsFavorite": false,
|
||||||
"IsDisabled": false,
|
"IsDisabled": false,
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ From Settings you can:
|
|||||||
- Right-click an app or file item and choose **Open Containing Folder**
|
- Right-click an app or file item and choose **Open Containing Folder**
|
||||||
- Enable **Run as administrator** for app and file items that need elevation
|
- Enable **Run as administrator** for app and file items that need elevation
|
||||||
- Set a working folder or start apps minimized for app and file items
|
- Set a working folder or start apps minimized for app and file items
|
||||||
|
- Add notes to items for reminders, context, or search keywords
|
||||||
- Use **Config... > Validate Targets** to check for missing app, file, and folder targets
|
- Use **Config... > Validate Targets** to check for missing app, file, and folder targets
|
||||||
- Use **Config... > Export Selected Item** or **Import Item** to share one item or menu section
|
- Use **Config... > Export Selected Item** or **Import Item** to share one item or menu section
|
||||||
- Right-click an item and choose **Sort This Menu** or **Sort This Level**
|
- Right-click an item and choose **Sort This Menu** or **Sort This Level**
|
||||||
|
|||||||
Reference in New Issue
Block a user