Maybe it's interesting and someone will implement it to future releases.
I added a property selected feature for my personal scite.
The text (filepath) in pathbar is selectable and can be copied with this patch.
--- _523/scite/gtk/SciTEGTK.cxx
+++ 523/scite/gtk/SciTEGTK.cxx
@@ -902,8 +902,15 @@
const FilePath &fp = buffers.buffers[index].file;
if (fp.IsUntitled())
tabcontent = gtk_label_new(localiser.Text("Untitled").c_str());
- else
+ else {
tabcontent = gtk_label_new(fp.AsInternal());
+ if (props.GetInt("pathbar.selectable")) {
+ gtk_label_set_selectable(GTK_LABEL(tabcontent), TRUE);
+ gtk_widget_set_can_focus(tabcontent, FALSE);
+ gtk_label_set_use_markup (GTK_LABEL (tabcontent), TRUE);
+ gtk_label_set_ellipsize (GTK_LABEL (tabcontent), PANGO_ELLIPSIZE_MIDDLE);
+ }
+ }
} else {
// No path bar
tabcontent = gtk_image_new();
There is already
File | Copy Path.If you really want this incorporated, the patch should add documentation and remove the extraneous spaces before
(.The function
File | Copy Pathis known by me. It's very useful key control. I see this patch as additional feature only.I changed/added the patch on your request. Hopefully it's well.
Here is the complete one which based on scite v5.2.3....
Committed as [100559].
Related
Commit: [100559]