@@ -241,6 +241,11 @@ await Commands.SaveRevisionFile
241
241
Native . OS . OpenWithDefaultEditor ( tmpFile ) ;
242
242
}
243
243
244
+ public string GetAbsPath ( string path )
245
+ {
246
+ return Native . OS . GetAbsPath ( _repo . FullPath , path ) ;
247
+ }
248
+
244
249
public ContextMenu CreateChangeContextMenuByFolder ( ChangeTreeNode node , List < Models . Change > changes )
245
250
{
246
251
var fullPath = Native . OS . GetAbsPath ( _repo . FullPath , node . FullPath ) ;
@@ -293,6 +298,7 @@ public ContextMenu CreateChangeContextMenuByFolder(ChangeTreeNode node, List<Mod
293
298
var copyPath = new MenuItem ( ) ;
294
299
copyPath . Header = App . Text ( "CopyPath" ) ;
295
300
copyPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
301
+ copyPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+C" : "Ctrl+C" ;
296
302
copyPath . Click += async ( _ , ev ) =>
297
303
{
298
304
await App . CopyTextAsync ( node . FullPath ) ;
@@ -302,6 +308,7 @@ public ContextMenu CreateChangeContextMenuByFolder(ChangeTreeNode node, List<Mod
302
308
var copyFullPath = new MenuItem ( ) ;
303
309
copyFullPath . Header = App . Text ( "CopyFullPath" ) ;
304
310
copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
311
+ copyFullPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+⇧+C" : "Ctrl+Shift+C" ;
305
312
copyFullPath . Click += async ( _ , e ) =>
306
313
{
307
314
await App . CopyTextAsync ( fullPath ) ;
@@ -432,6 +439,7 @@ public ContextMenu CreateChangeContextMenu(Models.Change change)
432
439
var copyPath = new MenuItem ( ) ;
433
440
copyPath . Header = App . Text ( "CopyPath" ) ;
434
441
copyPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
442
+ copyPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+C" : "Ctrl+C" ;
435
443
copyPath . Click += async ( _ , ev ) =>
436
444
{
437
445
await App . CopyTextAsync ( change . Path ) ;
@@ -441,6 +449,7 @@ public ContextMenu CreateChangeContextMenu(Models.Change change)
441
449
var copyFullPath = new MenuItem ( ) ;
442
450
copyFullPath . Header = App . Text ( "CopyFullPath" ) ;
443
451
copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
452
+ copyFullPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+⇧+C" : "Ctrl+Shift+C" ;
444
453
copyFullPath . Click += async ( _ , e ) =>
445
454
{
446
455
await App . CopyTextAsync ( fullPath ) ;
@@ -477,6 +486,7 @@ public ContextMenu CreateRevisionFileContextMenuByFolder(string path)
477
486
var copyPath = new MenuItem ( ) ;
478
487
copyPath . Header = App . Text ( "CopyPath" ) ;
479
488
copyPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
489
+ copyPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+C" : "Ctrl+C" ;
480
490
copyPath . Click += async ( _ , ev ) =>
481
491
{
482
492
await App . CopyTextAsync ( path ) ;
@@ -486,6 +496,7 @@ public ContextMenu CreateRevisionFileContextMenuByFolder(string path)
486
496
var copyFullPath = new MenuItem ( ) ;
487
497
copyFullPath . Header = App . Text ( "CopyFullPath" ) ;
488
498
copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
499
+ copyFullPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+⇧+C" : "Ctrl+Shift+C" ;
489
500
copyFullPath . Click += async ( _ , e ) =>
490
501
{
491
502
await App . CopyTextAsync ( fullPath ) ;
@@ -622,6 +633,7 @@ await Commands.SaveRevisionFile
622
633
var copyPath = new MenuItem ( ) ;
623
634
copyPath . Header = App . Text ( "CopyPath" ) ;
624
635
copyPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
636
+ copyPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+C" : "Ctrl+C" ;
625
637
copyPath . Click += async ( _ , ev ) =>
626
638
{
627
639
await App . CopyTextAsync ( file . Path ) ;
@@ -631,6 +643,7 @@ await Commands.SaveRevisionFile
631
643
var copyFullPath = new MenuItem ( ) ;
632
644
copyFullPath . Header = App . Text ( "CopyFullPath" ) ;
633
645
copyFullPath . Icon = App . CreateMenuIcon ( "Icons.Copy" ) ;
646
+ copyFullPath . Tag = OperatingSystem . IsMacOS ( ) ? "⌘+⇧+C" : "Ctrl+Shift+C" ;
634
647
copyFullPath . Click += async ( _ , e ) =>
635
648
{
636
649
await App . CopyTextAsync ( fullPath ) ;
0 commit comments