You don't say which browser or OS you prefer... would the Firefox plugin
Copy URL help? Not a perfect solution as you possibly(?) only want the namespace rather than the full path and I don't know what native tools you'll have available to extract the namespace. Perhaps
RegEx Firefox Shortcuts might help.
I use the Copy URL extension and
Klipper to do what (I believe) you describe.
To use it:-
1. Click on the
(Copy URL button in the Toolbar). The URL is then parsed by Klipper and, as it matches the RegEx for a DokuWiki URL, the namespace is extracted and stored in the clipboard.
2. To use the most recent "Klipped" namespace just paste. Multiple namespaces can be stored by Klipper.
tl;dr? left-click to copy URL, centre-click to paste namespace
My Klipper
RegEx for the
Action properties is
^(http)(.)+doku.php\?id\=(.*)$; it's set to
Automatic; the
Description is
Extract DokuWiki NameSpace; the
Command is
echo %s|cut -d "=" -f2 ; and the
Output Handling is
Replace Clipboard.
If you want to copy the URLs of many tabs:-
* The Firefox plugin
Copy URLs Expert will copy URLs from multiple open tabs, and also works with Klipper.
* You can manually do it in Firefox Windows
Alt+T+O+C; in Firefox Linux
Alt+E+N+C. Note that other plugins may interfere and you will need to undo that after you've done (Use Current Pages as Homepage).