On tight integration with the shell (a pager and a browser)

I just hacked together a bunch of scripts that implement a pager and browser tightly integrated to the shell.
Slogan:
Monolithic programs prevent synergy. Tight integration with the shell promotes synergy, and is closer to the UNIX philosophy.
(Furthermore, it enables workflows that would otherwise require a mouse. It enhances accessability.)
Background:
Some time ago I stumbled upon the nmh and mh mail clients (implementation in mailutils). I was interested by the concept, and surprised that they are not more popular. (One big problem with them is the lack of modern mailbox support, lack of IMAP, and such.)
Anyway, they allow really tight integration with the shell. Another such application is taskwarrior [pkg].
Example:
Using taskwarrior and mh it is very easy to add a task description to an email. In the other direction, one can easily annotate a task with an email.
I realised git [pkg] is also such an app. To illustrate what I do not want: You do not use the command `git` to enter a monolith, that provides its own shell:
[user@host ~]$ git
git> add myfile
git> commit
git> push origin master
git> quit
[user@host ~]$
That would feel really stupid, right? Another program that illustrates what I mean is surfraw [pkg] (usually abbreviated to sr).
Ok, so far for background and illustration. On to my scripts.
My scripts
Warning: First of all, I want to stress that I am a bad programmer, my scripts are very fragile, and they provide a crude user experience. This is really just a proof of concept.
Consider the following scenario.
Scenario:
Suppose you are logged in to some server via ssh. No mouse, no X, no screen or tmux. You are writing an email, and want to quote some text from Wikipedia. What do you do?
I provide some scripts that give a crude browser and page tightly integrated with the shell. The pager p is akin to less (or more) but just dumps its output in the terminal. You use pd (page down) pu (page up) pj and pk (scroll 3 lines down/up) to navigate throught the output.
The browser b just runs a URL through elinks -dump and saves the output in a cache file. Typically, one would pipe the output of b through p. Further bl n follows link number n. Further bcur just prints the output of the cache file to the terminal (for example to pipe it through p if one had not done that yet).
The bundles of scripts are available at https://github.com/jcommelin/p and https://github.com/jcommelin/b .
Back to the scenario. With my scripts I can now do:
[user@host ~]$ sr wikipedia linux | p # sr the linux wiki page, pipe through p
[user@host ~]$ pd # page down
[user@host ~]$ pd
[user@host ~]$ pj 10 # scroll 10 lines down
[user@host ~]$ pcur | tail -12 >> email.txt # select last 12 lines of current paging, append to email
(I obviously did not print the output of the commands, as they would fill the entire screen.)
Ok, this post is long enough already. I would appreciate any feedback.
Other apps that take the `tight integration' approach.
A niche of apps still lacking such a program.
Feedback on my scripts (I don't mind converting stuff to C. It should become pretty robust in the end.)
FYI: I already plan on adding browsing history to b.

Please see your other post for an answer.  Thank you.
Opening PDFs on iPad

Similar Messages

  • I loaded a jZip programme, now whenever I start Firefox it open with the jZip search page and I can't permanently change the home page to my own selection. How can I get rid of theis iZip home page

    I have tried all the optons to change the home page, but when I exit from Firefox and restart, it will revert to the iZip search engine home page. I even deleted the izip search engine reference from the searchplugin directory but with no success

    You can open the <b>about:config</b> page via the location bar and do a search for <i>jzip</i> via the Filter at the top of the about:config page.<br />
    You can reset all <i>jzip</i> related prefs via the right-click context menu to their default values.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    You can use the Filter bar at to top of the about:config page to locate a pref more easily.

  • Tighter Integration with Active Directory User Groups

    I just wrapped up a Jabber deployment with IM&P 9.1(1) and J4W clients 9.1(3).
    The customer asked me if it is on Cisco's roadmap to allow groups in Active Directory to be pulled into the Jabber client.  The primary business case is to allow those in IT to send out IM blasts to the corporation or certain departments.
    Obviously, this would require a significant amount of development and a much tighter integration with Active Directory, but I need to ask anyway.
    Has something like this been identified and placed on any roadmap?
    Thanks,
    Matthew Berry

    Unfortunately this kind of questions cannot be addressed here, roadmap questions need to go thru official channels for an answer.
    You need to reach your SE/AM for this question.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Why does iTunes delete my library every time I turn my computer on? All my music is still on my computer but when I open iTunes it comes up with the scan media page. I have to redo my playlists and it takes forever. Can someone help??

    Every time I turn my computer on and open iTunes all my music is gone, if comes up with the scan media page, all my playlists have been deleted. All my music is still on the computer and in the files. I don't know why it keeps doing this, it's really annoying as I have loads of music and then have to do my playlists again just to sync my phone. Can someone please help??

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be copied and renamed asiTunes Library.itl to restore the library to an earlier state. Look for a recent .tmp file that is similar in size to the .itl files in the Previous iTunes Libraries folder. If it has happened repeatedly you may want the earliest such file generated since the last iTunes upgrade.
    If applicable, see iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device. Even if you have the media you can use selected steps from the tip to ensure that you don't lose settings and data from the device as a result of switching libraries.
    A large number of users with this issue have been using AVG Anti-Virus which appears to be implicated in the problem. AVG have released a patch which might help, so if you use AVG then I would update that first. I'd also be interested to know which AV you use in case others may cause similar issues. I recommend excluding the iTunes folder from any real-time and scheduled AV scanning process. Another possible cause could be automatic backup tools.
    tt2

  • SiteMinder integration with the internal and external facing portals

    Hi ,
    We are in development phase for SiteMinder integration with the internal and external facing portals.The proposed dual authentication scheme which requires both SiteMinder for External facing portal (EFP) and LDAP for Internal portal .is it possible?
    and is it possible to main to diff LDAP directories one is external users and one is for internal users.?
    If you maintain  2 diff(external & internal) LDAP Directories in Siteminder Policy Server  what about  external users which are  not exit in portal data source .
    I appreciate if anyone  can help me for my above query .
    Regards
    Tag

    Hey Tag,
    We do have a physical external Portal and a physical internal portal.  The both the external and internal are connected to 2 LDAP directories.
    For example the External Portal is connected to the Employee LDAP Direcotry and the Customer LDAP Directory.  The Internal Portal is connected to the US Employee LDAP Direcotry and the EMEA LDAP Directory.
    So each one of them is connected to 2 different LDAP Directories.
    I believe that the Siteminder Policy is setup such that the Internal portal has a policy and the External portal has a seperate policy on the same Siteminder Server.  Then each of the Policies is configured to connect to the approiate LDAP Directories.
    You have to maintain the LDAP Directory information in both the portal and Siteminder Policy Server.  It is required in the policy server so that it can authenticate the user and it is required in the Portal server so that it can authorize the user and display content based on thier assigned roles.
    Hope that helps.
    Regards,
    Keith

  • How to keep data integrity with the two business service in OSB 10.3.1.0

    How to keep data integrity with the two business service in OSB 10.3.1.0
    In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue.
    Basing customer requirment, I created a testcase but I can't keep data integerity, For detail information, please refer the attached docs.

    Can you please explain what you meant my data integrity in your use case?
    Manoj

  • Whenever I open firefox a add ons screen comes up with the yahoo web page behind it. . I just want the Yahoo web page and do not want to close the add ons page every time I use my computer.

    Whenever I open firefox a add ons screen comes up with the yahoo web page behind it. . I just want the Yahoo web page and do not want to close the add ons page every time I use my computer.
    I don't know what else to say about this. It is a screen that comes up in its own window everytime I open Firefox

    Please check your home page setting and see if about:addons is listed. If it is, please remove it
    https://support.mozilla.com/en-US/kb/How+to+set+the+home+page

  • I'm using a 16GB iPhone 4s, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out a

    I'm using a 16GB iPhone 4S, with the latest version of iOS 8.1.1. Whenever I go to the "Cellular" settings on the main settings page and turn OFF cellular data usage for native apps like mail, app store, contacts, photos etc , the moment I back out and come back in, all the native apps I turned cellular off for are back on again. Kindly help me

    Exact same question as ankit1986, specifically with the photos while on cellular-only, and as simple as it sounds, I tried the hard reboot Ingo2711 suggested.  Still experiencing the same error with the native apps reverting to on.  It's killing our shared data-plan (2GB).

  • What is wrong with the table om page 2 (see attached file)

    What is wrong with the table om page 2 (see attached file)

    MySpecialSceenName wrote:
    But there are several empty lines under the text...........
    I'm guessing that by that you mean space for several lines, not empty paragraphs. This could be caused by any number of things, but not allowing hyphenation, or hyphantion rules that are too restictive might cause ID to be unable to break a line which would cause it to go into overset, as would possibly some combinations of Keep Options if there is more than one paragraph in the cell or if there is not enough room to fite the entire paragraph and you are just one line short with keep options requiring at least two lines be kept together at the end, for example. Applying No Break to a sting too wide for the cell would do it too.

  • I upgraded my iphone5 to ios7 when it got broken i backed up on iCloud before i got a new iPhone 5 now I want to restore the back up at the start up page and as iphone5 originally come with ios6 it is saying that my back up data isn't compatible

    i upgraded my iphone5 to ios7 when it got broken i backed up on iCloud before i got a new iPhone 5 now I want to restore the back up at the start up page and as iphone5 originally come with ios6 it is saying that my back up data isn't compatible

    thanks for your reply but if i upgrade the new phone to ios7 I will have to erase the Iphone to start again in other to get to the page where I have to chose restore from icloud, wont this process reverse the operating system back to ios6 or is that another way to restore other than erase and reinstall. pls help

  • My iphone is stuck in two pages, the emergency call page and the a page that says insert a valid sim card, whats wrong with it

    my iphone is stuck in two pages, the emergency call page and the a page that says insert a valid sim card, whats wrong with it??

    Did you insert a valid SIM card?

  • Problems with the html custon page

    Hi, i add the parameter connectionDisallowedURL ( connectionDisallowedURL = /custom_page/custom_page.htm) to my formsweb.cfg. This one, have the name of the folder where i put the html custom page and all the images (.gif). This folder is located in /ORACLE_HOME/Apache/Apache/htdocs. When i disabled the new user connections (     allowNewConnections=false) the Application Server redirect to my custom page, but not display the images.
    Anyone can help me?

    Ok!!!... I resolved the problem. I moved the images to /Apache/Apache/hdocs/ohs_images
    thx,

  • TS3899 I can  no longer send photos in an email from my iphone 5. It uploads the photo to the "new message" page - and then it freezes. I can use safari and check my emails, and when the email part is frozen the rest of the phone works fine ! any advice?!

    I can no longer send photos in an email from my iphone 5. It uploads the photo the the "mew message" page and then it freezes! I can use safari and check my emails, and when the email part is frozen I can still use the rest of my phone. Any advice ?!?

    Hi, ireland a. 
    I would recommend closing any open applications in multitasking and restarting the device.  If unfamiliar with multitasking, I have included a screenshot on how to process an application close. 
    iOS: Force an app to close
    Once these steps are processed, attempt to send the photo again. 
    iPhoto for iOS (iPhone): Send photos by email
    http://support.apple.com/kb/PH3271
    Regards,
    Jason H. 

  • "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."  Trying to format my iomega external HD for use with Mac

    Hi. Trying to connect iomega ext. HD. i have to reformat for Mac. When i plug in & go to Disk Utility,the external shows up and i'm supposed to click "partition". When i do, a box comes up saying ""Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility." I quit and relaunched, same results. After googling my question, i came up with this:
    "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."
    (Quitting and reopening Disk Utility does not help.)
    The following also appears in Console log:
    *** malloc[419]: Deallocation of a pointer not malloced: 0x290a410; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug : for architecture i386 object: ./Applications/iTunes.app/Contents/MacOS/iTunes malformed object (unknown flavor for flavor number 0 in LC_UNIXTHREAD command 27 can't byte swap it)
    Workaround
    Quit Disk Utility.
    From the Finder's Go menu, choose Go to Folder....
    Type the following, then click OK: /Library/Receipts
    Temporarily remove these iTunes receipts from /Library/Receipts (sort the folder alphabetically as a list):
    iTunes.pkg
    iTunes4.pkg
    You can put them on the desktop, for example. Do not remove iTunesX.pkg or iTunes Phone Driver.pkg.
    Open Disk Utility and repair disk permissions again.
    Quit Disk Utility.
    Put the removed iTunes receipts back in /Library/Receipts.
    Note: This issue does not affect Disk Utility's verify or repair disk features.
    All seemed good, for a moment, until, upon going back to Disk Utility after removing itunes4.pkg and putting on desktop (i did not have itunes.pkg to remove) the same thing was happening. When i highlite my iomega ext. on left of page, disk perrmissions is grayed and does not allow me to click on it. Same problem from the start. Can somebody please help me out here? That would soooo awesome. Thanx!

    i'm just scared i will do something wrong on my own and lose my data.
    You shouldn't be scared of that, because you should already have backups. If you don't have backups, then backing up is the first priority.
    Insert the Snow Leopard DVD and restart. When you hear the chime, hold down the C key and keep holding it until the Apple logo appears on the display. You should now see the language selection screen. Select your language, then choose Utilities > Disk Utility from the menu bar. In the Disk Utility window, select the external drive (not the internal). The drive may already have a data partition, in which case there will be another icon below the drive icon. Choose the drive icon, then select the Partition tab. Create a single partition with the default options (GUID partition table, Mac OS X Extended Journaled).
    When the partitioning is done, select the startup volume on your internal drive in the DU window. Select the Restore tab. Drag the icon of the startup volume to the "Source" field. Then drag the icon of the newly-created volume on the external drive to the "Destination" field. Make sure you have this right. Then click the Restore button, and the data on your startup volume will be copied to the external drive.

  • The "My Ebay" page and the AT&T yahoo changed suddenly and some features are non operative. Also the Google instant search stopped working. All this is happening on Firefox. Everything displays and works correctly on IE. What could be wrong?

    Hi, On thursday evening I closed all open windows to do some virus scanning and window washer maintenance. After I was finished I opened up firefox and went back on Ebay and the "My Ebay" window has changed to a totally different appearance and I can't access messages, etc. My AT&T Yahoo email window has also changed its appearance and has selections on it which are new and non operative. They both are now presented as a vertical format and the "My Ebay" window is expanded off the monitor with a blue sliding bar on the bottom and large white areas in the viewing area. I can shrink it down, but I then need a magnifying glass to read it. The opening Ebay sign in window is normal. The opening AT&T sign in window is normal. Also the Google instant search results, which used to appear when I was typing in my search words, has also stopped working. Everything seems to work properly on Internet Explorer. When I double click on the Mozilla icon it takes me to the Mozilla start page and shows me the Google search bar. That is what I normally see. I'm baffled.

    (1) Firefox's built-in post-crash page has not been a real HTML page for a long time (for example, from the time of Firefox 22, see: [https://support.mozilla.org/en-US/questions/968212 Want to save LOTS of versions of "Restore Session.xht" from the "oops ..." page for later use]). If you had this working differently with Firefox 25, that might have been created by an extension.
    You can check to see whether extensions are disabled or need an update on the Add-ons page. Either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Extensions. The disabled extensions cluster toward the bottom of the list. To poll for updates, use the "gear" button above the list and choose Check for Updates.
    If you used the Reset feature (or Firefox automatically did a reset due to some problem during upgrading), you will need to reinstall missing extensions. The reset feature creates a folder on the desktop named Old Firefox Data. Do you have that folder? There may be data you can recover from it.
    (2) There are many ways for history to get cleared, both internal to Firefox and external. Could you double-check your Privacy settings?
    orange Firefox button (or Tools menu) > Options > Privacy
    * The "Firefox will" drop-down says Remember History: Firefox shouldn't be clearing history, but an add-on or external software could do it
    * The "Firefox will" drop-down says Use custom settings for history: inspect the "Clear history when Firefox closes" setting to make Firefox isn't set to clear history. Also check your add-ons and consider external software.
    Firefox normally accumulates months of history. However, some of Firefox's database sizes are based on disk space available. If your hard drive is very full, Firefox might reduce the amount of history stored.

Maybe you are looking for

  • Ipod nano 6th gen is not recognized by itunes on a PC running Windows XP professional SP3, itunes 10.2

    Running Windows XP professional SP3 and itunes 10.2. I have followed every troubleshooting page on the apple support site yet my ipod nano 6th gen is not recognized by itunes (but it shows on my pc as a hard disk) weirder still, my ipod nano 3rd gen

  • Login error in 11.5.10.2

    Hi: We have 11.5.10.2 on unix with 10g db. I can access all instances but not this one. After login click on any form, I got or this time when I enter my login infor got error as below: Error Page You have encountered an unexpected error. Please cont

  • Cloning from SE to SE1 environments?

    I know this is a licensing issue. And I know those can't be resolved here, because of all the legalities etc. etc. And I know the only people that can resolve such issues definitiely are Oracle Sales Reps. But I'm not asking for a Supreme Court rulin

  • "Unable to Reach Servers" and "Connect to the Internet" Error Messages

    Hi. So, I purchased Adobe Audition at $19.99 per month for a year. It hasn't worked yet.  I've tried all the online forum advice - drop firewall, check hosts file, check some certificate, remove/reinstall Audition ...nothing has worked.  I still get

  • 1.83 Ghz Core 2 Duo or 2.0 Ghz Core Duo???

    Just curious if anyone would know which would be faster, a 1.83 Ghz Core 2 Duo or a 2.0 Ghz Core Duo. I saw both listed on the refurbished Apple site. The original 2.0 Core Duo has a Superdrive (not that I really have a need for one but you never kno