Ejemplo n.º 1
0
 private static void CopyNavigationCommandAndQuit()
 {
     ExecuteOnSelectedRepository(r =>
     {
         var command = $"cd \"{r.SafePath}\"";
         TextCopy.Clipboard.SetText(command);
         TimelyMessage.ShowMessage("Copied to clipboard. Please paste and run the command manually now.", TimeSpan.FromMilliseconds(100));
         Application.RequestStop();
     });
 }
Ejemplo n.º 2
0
        private static void CopyPath()
        {
            ExecuteOnSelectedRepository(r =>
            {
                // use '/' for linux systems and bash command line (will work on cmd and powershell as well)
                var path = r.Path.Replace(@"\", "/");

                TextCopy.Clipboard.SetText(path);
                TimelyMessage.ShowMessage("Path copied to clipboard", TimeSpan.FromMilliseconds(100));
            });
        }