Skip to content

Commit e078de5

Browse files
committed
add CopyText for Shell plugin
1 parent 6f7c3eb commit e078de5

File tree

1 file changed

+8
-4
lines changed
  • Plugins/Flow.Launcher.Plugin.Shell

1 file changed

+8
-4
lines changed

Plugins/Flow.Launcher.Plugin.Shell/Main.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public List<Result> Query(Query query)
8484

8585
Execute(Process.Start, PrepareProcessStartInfo(m, runAsAdministrator));
8686
return true;
87-
}
87+
},
88+
CopyText = m
8889
}));
8990
}
9091
}
@@ -123,7 +124,8 @@ private List<Result> GetHistoryCmds(string cmd, Result result)
123124

124125
Execute(Process.Start, PrepareProcessStartInfo(m.Key, runAsAdministrator));
125126
return true;
126-
}
127+
},
128+
CopyText = m.Key
127129
};
128130
return ret;
129131
}).Where(o => o != null);
@@ -152,7 +154,8 @@ private Result GetCurrentCmd(string cmd)
152154

153155
Execute(Process.Start, PrepareProcessStartInfo(cmd, runAsAdministrator));
154156
return true;
155-
}
157+
},
158+
CopyText = cmd
156159
};
157160

158161
return result;
@@ -176,7 +179,8 @@ private List<Result> ResultsFromHistory()
176179

177180
Execute(Process.Start, PrepareProcessStartInfo(m.Key, runAsAdministrator));
178181
return true;
179-
}
182+
},
183+
CopyText = m.Key
180184
});
181185

182186
if (_settings.ShowOnlyMostUsedCMDs)

0 commit comments

Comments
 (0)