Using dmenu to open links from xterm

Hi there,
Not too long ago, I toyed with xterm to make URL selection somewhat similar to urxvt's with url-select. https://bbs.archlinux.org/viewtopic.php?id=181515
Not too satisfied because it requires compiling xterm, I found a simpler solution. First off, you need this little script. I called it grab-urls:
#!/bin/bash
regex='\bhttps?://[^ ]*\b'
function menu { dmenu -p 'Open URL' ; }
function open { dwb -n "$1" ; }
urls="$(grep -Eo "$regex")"
[ -z "$urls" ] && exit
url="$(echo "$urls" | tac | menu)"
[ -n "$url" ] && open "$url"
Next, the trick is to have xterm pipe the content of its scrollback to that script. In your .Xresources:
xterm*printerCommand: /path/to/grab-urls
*VT100.Translations: #override \n\
Alt <Key>u: print-everything(noAttrs, noNewLine)
After sourcing it with xrdb and restarting xterm, pressing Alt+u should spawn dmenu with the links it found.
This is nothing too fancy, but I thought I'd share it.

You mentioned that The file has links to other files in the package. How did those links get there? Were those links originally between PDF files in a relative folder structure? Then you put those PDF files into the PDF package?
Unfortunately, Acrobat 9 does not support hypertext linking between files in a PDF package.
You mentioned your lack of success getting the links from the second file in the PDF package. In your PackageFiles result element, you can specify the name of the file you want, but you cannot specify the ordinal number of the file.  Here is a DDX that extracts a file from a package. The <NoPackage> changes the result from a PDF package to a single PDF.
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="myresult">
<NoPackage/>
    <PackageFiles  nameKeys="Recap.pdf">
        <PDF source="doc1"/>
    </PackageFiles>
</PDF>
</DDX>

Similar Messages

  • "An Unexpected Error occured" While opening links from office 2010 Word document on windows 8.1

    Remove
    alert
    |
    Edit
    |
    Change
    type
    0
    We are on windows environment as below - 
    Server -
    - Win2k8 Std R2,
    - SQL 2008,
    - SP 2010 Foundation SP2
    Client -
    - Win 8.1 64 Bit OS,
    - Browser - IE 11
    - MS Office - 2010  - 14.0.4763.1000
    Problem - 
    While Opening links from word document(Ctrl+Click) , get error message "An Unexpected
    Error had occured". And link is not opened.
    We are using this client using remote desktop.
    Any ideas on this?
    Does Microsoft provided any fixes for this?
    shwetank

    Hi,
    Have you tried the hyperlinks in other Office programs like Outlook and PowerPoint? Do they work well?
    You may need to run the Fix it in this kb below:
    http://support.microsoft.com/kb/310049/en-us
    You can also try the steps in the section "Let me fix it myself". Although this kb is written for Outlook, it may help in your scenario as well.
    I hope this is useful.
    Regards,
    Melon Chen
    TechNet Community Support

  • FF 3.6.12 will not open links from external sources (Outlook, Dreamweaver, Digsby, etc)

    I have just upgraded to Firefox 3.6.12 and links clicked in an external source will not open in Firefox.
    Firefox is set as my default program for web browsing. I have tried to open links from Outlook, Dreamweaver, Digsby, and other programs.

    I have the same issue, opening links from external programs like Word or Thunderbird does not work. This used to work before the update to 3.6.12

  • Safari not opening in landscape mode when opening links from mail

    Hello,
    Since the update to iOS8 I experience following: when using my iphone in landscape mode, opening links from the default mail app doesn't open Safari in landscape mode. I have to manually tilt the phone to portrait mode and back to get landscape mode.
    When opening Safari manually in landscape mode, it works fine.
    Anybody else experiencing this issue?

    Hey there streatuac,
    It sounds like the Safari app is not automatically switching to landscape when you open a link from the mail app on your phone. I would start by closing all the running apps on your phone first:
    iOS: Force an app to close
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that restart the device and test the issue again:
    iOS: Turning off and on (restarting) and resetting
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Firefox does not open links from google

    I am using Firefox 12 on a Mac. I am not able to open links from Google, e.g. google maps, google groups. Also google maps does not show up on other websites. Safari does this all.
    I have disabled all add-ons and went into the safe mode of Firefox. No improvement. I can't open google maps or google groups. Apart from this, other webpages don't cause a problem.
    What is going on?

    Have a look and see if SPDY is enabled. Enter about:config in the address window and spdy in the search window. If "network.http.spdy.enabled" is true, double click on the entry to disable it.

  • I cannot open links from my Yahoo or Google email accounts

    When I try to open links from my Yahoo! e-mail or even Google mail, the links will not open. I get a message saying  "Safari can't open the page". This happens repeatedly! Any other websites open are fine and working.
    I know this is another subject, so you don't have o answer if you don't want to.  Can you tell me where the Screen Caption button is or how I can take a screen pic?
    Thank you for your assistance.
    Penny Garza

    Right click on a PSD file and select "Open with...". In the following dialog, select Photoshop Elements and keep the checkbox to use that as the default on.

  • Open link from email now takes 60s after upgrade to 14.0.1

    Firefox has been set as my default browser and so will open links from emails. In the past this happened pretty quickly providing I already had FF running. Now, after the 14.0.1 update, a new FF window opens (irritating but can live with that). Then there is a 60s wait before the page opens (a timeout somewhere?). It seems to be independent of the site visited (I checked with my own site among others as it is nice and simple). I also get the long delay if I ask the mailer to open the email in a browser (for messages containing HTML). The same sites open quickly if I simply type the URL on a run command line.
    I'm running Windows XP sevice pack 3. My mailer is Pegasus 4.4.1 (admittedly a bit out of the mainstream!). Perhaps someone could suggest an additional test to narrow down and then hopefully solve the problem. I've had to make IE my default browser for now as I often use a browser for messages containing HTML.
    TIA

    Thanks, but safe mode does not alter the behaviour and I've only ever had the default theme.
    The delay really is pretty much exactly 60s. Surely this is something timing out. Is that not an important clue?

  • "Open links from applications" in Safari 5

    Preferences > General > "Open links from applications"
    This has been removed in Safari 5, so when I open, say, 10 weblocs I keep in a folder in the Finder, I now get 10 separate windows.
    1) ***, Apple?!?
    2) Any suggestions for a hack to fix this stupid oversight?
    I could probably change Preferences > Tabs > Open pages in tabs instead of windows (which I currently have set to "Never" because it overrides keystroke+click for telling Safari how to open a link) and see what that does, but I like that preference the way it is.

    Hi,
         Is there any workaround for this issue. Because when multiple window gets spanned we are getting confused. Or let us know if there is any way to open the download prompt alone instead of opening up with the new window. One more thing to note is once the download is complete the new window also doesn't closes automatically which needs to be closed manually. This makes very annoying. Kindly let us know how to prevent the new empty window from opening.
    Vijay.

  • I can no longer open links from my email account into safari, how can I fix this?

    I can no longer open links from my email account into safari, on my iphone 4.

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10-15 seconds).
    No data will be lost.

  • Firefox won't open links from Skype?

    Windows 8.1 Pro (x64), Skype is the latest version for desktop 6.10.0.104, Firefox is the latest version (of writing this question) - 25 Stable.
    When I click on link in Skype nothing happens! Firefox is set as default browser for all the supported file types. If I change the default browser to IE 11 and click on Skype link, the link opens in IE without a problem.
    Setting back defaults for Firefox doesn't help. I tried reinstalling both Firefox and Skype without success.
    Any ideas? It's very unpractical to copy every link and paste it.

    Hello,
    Can you please confirm that the problem you are facing is different from the one reported earlier - [https://support.mozilla.org/en-US/questions/961242 Firefox not opening links from Skype].
    Or is the issue that there is no activity when you click on a link from Skype. Do other links (say in Outlook / Word) open Firefox when you click them? We want to narrow this down to see if this is a Skype specific issue.
    Thank you

  • I'm using tweetdeck to open links but after i update to 14.0.1 version, the window open or pop out every single time when I open the links, how can i do?

    I'm using tweetdeck to open links , I can click on tons of link I want to open without the firefox window pop up but after i update to 14.0.1 version, the window open or pop out every single time when I open the link, how can I just open the link but not the window?

    yesssssss , EXACTLY !!!! before the update ,whenever I open an external link, Tweetdeck used to stay in front, and now Firefox moves in front of Tweetdeck<<<< EXACTLY !!!

  • Unable to open links from e-mails

    I am unable to open links from e-mails received. This problem has only just occurred. Can you help me please?

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • Not opening links from mail - firefox turns grey at bottom

    firefox usually opens links from "mail" in a new tab. Sometimes
    firefox greys out and will not allow links to open. Clearing history
    or restarting firefox solves the problem somettimes. Multiple restarts
    may be required.

    I suggest you to file a bug report regarding this issue: https://bugreport.apple.com/
    I can confirm that Safari has serious issues with opening links from other applications. For example Content Guide links in Quicktime Player opens empty windows.

  • Can't open link from the forum which should solve the text replace bug

    Can't open link from the forum (http://feedback.photoshop.com/photoshop_family/topics/text_corruption_in_photoshop_cs6_fil e) which should solve the "text replace bug":
    http://helpx.stage.adobe.com/photoshop/kb/text-replaced-text-different-layer.html
    Anywhere else where I can download thich tech doc?
    Thanks in advance

    Hi,
    Try this link:
    http://helpx.adobe.com/photoshop/kb/text-replaced-text-different-layer.html
    The one posted needs to be updated.
    regards,
    steve

  • Opening links from safari

    Whenever i try to open a link to a document in Safari it downloads as an .eml file and when i open it, it opens in mail. How can i fix this, so it automatically downloads as an .mht file so it will open in word?

    I suggest you to file a bug report regarding this issue: https://bugreport.apple.com/
    I can confirm that Safari has serious issues with opening links from other applications. For example Content Guide links in Quicktime Player opens empty windows.

Maybe you are looking for

  • Flash Player in web page hosted on Windows Azure

    First, I admit I am a Flash noob. That said, I have an ASP.NET web page (ASPX) hosting a flash movie, and the page works perfectly on my development box but does NOT work when hosted on a Windows Azure web role.  The initial image (PNG) displays, and

  • Possible bug: Saving array with extended and double precision to spreadshee​t

    If one concatenates a double precision array and an extended precision array with the "build array" vi and then saves using "Write to Spreadsheet File" vi any digits to the right of the decimal place are set to zero in the saved file. This happens re

  • REPORT ON G/L accounts with plant wise details .

    HI , Kindly provide me some standard reports in which i can see the G/L accounts with plant details. thanks

  • Acrobat X Security Settings Not Working

    I made a PDF portfolio with Acrobat X and set password security to not allow any changes. The document title says it is SECURED, but pages can still be extracted. What is going on? What did I miss?

  • OBIEE 11g: Bugs Fixed in 11.1.1.6.5 Patch Set

    Hello, I have a question about the patches that apply. I have installed the product BI Publisher Enterprise 11g (11.1.1.6.0) I detected a bug: bug 13791065 - UNGROUP OF A SUBGROUP WITH AN EXPRESSION DOES NOT WORK PROPERLY This bug was fixed in OBIEE