Skip to content

Instantly share code, notes, and snippets.

@tablacus
Last active May 26, 2023 04:26
Show Gist options
  • Save tablacus/f0f663632c89b5a0c676be30112114fd to your computer and use it in GitHub Desktop.
Save tablacus/f0f663632c89b5a0c676be30112114fd to your computer and use it in GitHub Desktop.
Open clipboard path in new tab - Tablacus Explorer
var Items = api.OleGetClipboard();
if (Items.Count) {
for (var i = 0; i < Items.Count; i++) {
Navigate(Items.Item(i), SBSP_NEWBROWSER);
}
return;
}
Items = String(clipboardData.getData("text")).split(/[\r\n]+/);
for (var i in Items) {
if (/^"?[A-Z]:\\|^"?\\\\[A-Z]|^"?::{/i.test(Items[i])) {
Navigate(Items[i], SBSP_NEWBROWSER);
}
}
@tablacus
Copy link
Author

tablacus commented Aug 10, 2017

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment