Posted by: Clark
« on: February 11, 2025, 01:07:01 PM »just tried to create an Arch Linux VM. This is a pretty raw linux. Without help, no way this happens.
It's very odd that you can manually select text and copy text with Ctrl+C and Ctrl+V works in other applications but copy_buf_name doesn't work. The copy_buf_name command() is a macro which does the same thing.
Let's try something else. Open an existing file. Then go to the SlickEdit command line and run "copy-buf-name". This should copy the current file (buffer) name to the clipboard. This is a bit of a hail marry to see if something is going wrong elsewhere.
It's very odd that you can manually select text and copy text with Ctrl+C and Ctrl+V works in other applications but copy_buf_name doesn't work. The copy_buf_name command() is a macro which does the same thing.
Let's try something else. Open an existing file. Then go to the SlickEdit command line and run "copy-buf-name". This should copy the current file (buffer) name to the clipboard. This is a bit of a hail marry to see if something is going wrong elsewhere.
Code: [Select]
void _copy_text_to_clipboard(_str text,bool doAppend=false) {
orig_view_id := _create_temp_view(auto temp_view_id);
orig_markid := _duplicate_selection('');
mark_id := _alloc_selection();
_insert_text(text);
top();_select_char(mark_id);
bottom();
_select_char(mark_id);
_show_selection(mark_id);
if (doAppend) {
append_to_clipboard();
} else {
copy_to_clipboard();
}
activate_window(orig_view_id);
_show_selection(orig_markid);
_free_selection(mark_id);
_delete_temp_view(temp_view_id);
}