Pithy - A tiny console file browser

Pithy is a console file browser, a branch of ranger which focuses on shortness and simplicity of the code and integration into the shell while retaining rangers basic features and looks. Its size is less than 1000sloc (about a tenth of ranger) which makes it great for people who want to tinker with the code.
Screenshot:
(yes, this is actually a screenshot of ranger, but they both look the same anyway)
There is no README file or other documentation, so here's an introduction:
Pithy is not started by executing a file but by executing a bash/zsh function. First you need to source either bash_integration.sh or zsh_integration.zsh, depending on your shell. Either file takes the command to run the program as an argument, which is a simple "/path/to/pithy.py" in most cases but can be as complex as python2.6 "/path/to/pithy.py" --option1 .... So, the full line looks like:
source /path/to/bash_integration.py /path/to/pithy.py
It defines the function bash_pithy or zsh_pithy and the hotkey CTRL+O for quickly starting it. Read the *_integration-file for details.
The configuration file puts the pieces together which the pithy "library" provides you. It is about 300 lines long and you may want to skim through it to grasp the concept and the control keys. It is located at pithy/data/settings.py and can be copied to ~/.config/pithy/rc.py for customization. The settings file is executable python code which is run on initialization. First the default settings.py, then the custom rc.py. To ignore the default settings, use the option --no-defaults.
To run files, you have to set up a file launcher. Try http://xyne.archlinux.ca/projects/mimeo/
echo 'FILE_LAUNCHER = "mimeo %f"' >> ~/.config/pithy/rc.py
The interface is much like in ranger. Main differences as of now: No automatic synchronization with the FS, type "r" to update the view. No parallel loading either, the unicode support is limited and there is no console, just very simple prompts.
Bookmarks are implemented using the file system. Type m<name><ENTER> to create a link at $confdir/bookmarks/<name>, then type ` or ' to go there and pick a directory.
Instead of the console, use the shell. Quitting and restarting pithy will restore almost the same state (which you can reset with pithy --reset.) The variable $f contains the current filename. You need to use "$f" in bash if the filename contains spaces. The command sel runs xargs with the selected files as arguments. For example, type sel echo to display all selected files or sel mv -t /some/directory to move all selected files to /some/directory. Files are selected with SPACE or v and unselected with V. In contrast to ranger, the selection is global.
To install and run:
git clone http://git.sv.gnu.org/r/ranger.git pithy
cd pithy
git checkout slim
source bash_integration.sh /path/to/pithy.py # if you use zsh, source zsh_integration.zsh instead
And start pithy with ctrl+O.
(Note: There's a little bug with the bash-version: when exiting pithy, the directory is changed but the old one is still displayed in the prompt. I don't know how to make bash update it. Pressing ENTER fixes it though.)
I guess thats about it. Feel free to ask your questions
Btw: I'm not working on this at the moment. I'm posting this just so it's out there.
Last edited by hut (2010-08-25 13:40:54)

That is sweet! I just tried it and works great. Fast as well. 1Mb file took 3sec.
I was trying to think of a way today how I could set something like this up but no need to now. I know there is a way but I guess I'll never investigate for now.
Nice work 9 outa 10 for this!
N95-8gb xmass 2007 ,nokia 6600 2002 ,nokia 8250 2000 ,ericsson GH388 1996 ,nokia T100 analogue 1994 , Radioshack twinhandset and 15m of cord lol as kids 1984

Similar Messages

  • File browser crashes frequently during Open/Save

    My late-2011 15" MBP running Mavericks recently started exhibiting a new bug.
    In many applications (Postbox, IDLE, PhotoShop CS5, Lightroom, etc) the file browser crashes almost (but not quite) every time it's used.
    If I choose > File > Open and start navigating the directory tree, it crashes the application (sometimes showing a generic error message, sometimes just quitting, depending on the application). If I open a Recent document the problem doesn't occur, but if I then try to > File > Save As and navigate the directory tree, it recurs.
    This doesn't happen all the time, but once it's started to occur it continues until I reboot.
    I've installed a 3rd-party SSD in the primary drive bay, and the standard Apple HDD in an Optibay. But I made this change a while ago and the problem is only new. I'm also running Windows 7 via a Parallels VB (and also Bootcamp) but the problem also occurs even if I don't boot up the VM.
    I can attach a crash report if that's any use. I haven't seen any similar problems reported online.
    Thanks for any advice,
    Steve

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Step 1
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the name of the crashed application or process in the Filter text field. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message (command-V).
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, look under User Diagnostic Reports for crash reports related to the crashed process. The report name starts with the name of the process, and ends with ".crash". Select the most recent report and post the entire contents — again, the text, not a screenshot. In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.) Please don’t post other kinds of diagnostic report — they're very long and not helpful.

  • Image Button file browser icon missing

    Hi there, I've been using C5 this week for the 1st time and have been working through a project. All has gone ok to date, a few niggles along the way but I've run into a huge bug this morning which is wrecking my plan to finish the project.
    I'm adding an image button to a slide and have found to my frustration that the file browser in Properties has vanished, pushed out past the properties block, which of course cannot be resized to the right (thanks Adobe, nice UI design there). This means I can't choose any image for my button apart from those already loaded in the preview which is utterly useless. I've attached a screenshot to show what it looks like.
    As you can see the Image Button drop down has gone very wide and pushed the folder browser icon out of sight. Simply maddening!
    I had been using image buttons all week with out any issues. Yesterday an update appeared (5.0.1.624) for C5 so I applied it. Then this issue started. I have since uninstalled C5 and reinstalled without applying the update and its still doing it. What I didn't do was reboot after the uninstall, maybe I should have done...
    Anybody else come across this? if it is a bug its a crippling one!!!!

    Hi Niall-Mac and KiHwa -
    This is indeed a CP bug!!! We found this some months ago - it turns out that if you name your button images with a very long file name (35-40 characters plus), it slowly starts pushing the "browse" folder icon further and further to the right of the panel. Add a few more buttons with longer file names to the gallery and eventually it disappears altogether, like you both have encountered (see image).
    Workaround 1 (best practice IMO until CP dev team fixes this):
    We started creating buttons in a separate CP file, creatively named "projectName_buttons" - this way any time we need a button we go to this file and copy/paste it into our project and we never have to mess with the button gallery in our working (source) file. If the "browse" icon disappears again in our buttons file, we simply copy all our buttons from our "project_buttons" file into a new blank project and save over the old (broken) one.
    Workaround 2 (not so user-friendly):
    1. Stretch your timeline panel as wide as it can go on your monitor (I use two 21" monitors to develop so I can make my timeline rather long)
    2. Undock the properties panel so that it is a floating window
    3. Drag the properties panel by the topmost dark gray bar just above the "Properties" tab and place it just below the timeline until it snaps into place - now don't let go of it just yet, drag it up a tiny bit further - as you do this a blue bar will appear signifying that it will dock to that position (underneath the timeline) - when you dock it to the timeline it will stretch to the same length as the timeline and voila, you can now see the "browse" icon - however, who wants a properties panel that takes up your whole monitor!!!! I certainly don't.....
    On a side note, it is very disheartening that once buttons are in the button gallery you have NO CONTROL over them - if they need to be edited you are forced to rename them so you can import a fresh button. This method unnecessarily creates TWO copies of a button in your gallery - the more edits you make to a button the more copies of that button you get in your gallery....some control over the button gallery would be nice.
    Hope this helps.
    Cheers,
    pixelatedView99

  • Tiny sound file could not be played.

    Hi.
    Why could not play the tiny sound file? (such as mp3 or wav files of 500ms duration)
    It worked fine with iPhone SDK 2.1, but not with iPhone SDK 2.2
    Of course, normal sound file(i.e, about 3 seconds ) works normally.
    And all codes have not any errors, just voice is not heard.
    I am using Audio Queue Services to play sound file.
    Isn' it a buf of iPhone SDK 2.2?

    Thank you for you reply - much appreciated.
    I am a bit confused - if I do not have a player installed, how come that everything is OK when I use Google Chrome as a browser?
    Many thanks,
    Jimmy

  • Error: Unable to locate an image file browser...

    I get the error below when I insert an image element and try to associate a picture to it by either double clicking it or using the browse button in the Draw palette.
    I have looked in my install directory and the "FileSystemBrowser.dll" file is present as well as the "ImageFileBrowserIDL.dll" file, so what gives?
    Running LiveCycle ES2 9.0.0.2.20120627.2.874785

    Hi,
    you should be able to fix that problem by re-registering Designer file browser DLL.
    http://thelivecycle.blogspot.de/2014/02/diy-bugfix-image-file-browser.html

  • Is there a way to see a file browser on iCloud? It says my account is filled up to 5G already and I can't imagine what it moved over to there that was that big.

    Is there a way to see a file browser on iCloud? It says my account is filled up to 5G already and I can't imagine what it moved over to there that was that big.
    I'm wondering if it moved my rhapsody music to the cloud (which is pointless) so I shut off 'document' sharing in case that's the problem, but it's still saying I'm at 5G right now.
    When I go to icloud.com all I see is the dumb app icons, with no clue as to what's taking up that disk space.
    btw, I did not sync photos from the get-go.
    A file browser? please? I need to see my cloud.
    sigh

    Have you enabled Automatic Downloads on all of your devices? This would download all of the books to all of your devices when you download on any device - as long as you are using the same Apple ID and iTunes account on all of your devices.
    Go to Settings>Store>Automatic Downloads>Books>On. When you download a book on one iDevice, it will download to all of your iDevices. This will only work for downloads moving forward from the moment that you turn the setting on. You will have to download the previously purchased books to all of your other devices.
    With iCloud, you can start reading the book on one device and then pickup where you left off on another device.

  • Why can't I see the list view in the file browser

    In the file browser for FCP X, I can see the files in the thumbnail view but when I choose "list view", I see nothing.

    Check three things: the filter popup in the upper left, the search box in the upper right, make sure there's nothing in it, and the action popup (the gear in the lower left) make sure there is no weird setting that's removing everything.
    You can also trash your preferences to reset them.

  • Iphone file browser stopped working after upgraded to IOS 5

    Hi,
    I have an iphone 3gs which I have recently upgraded to IOS 5. But to my horror after I have done that I can no longer browser my iphone's internal storage. Iphone connected to PC via USB, the file explorer no longer available. It can still sync with itune fine but there is noway I can access the storage locater in the phone via file explorer like I used to. Mind you I still have 3GB of space there.
    Is that a bug? Or I stuffed up the upgrade some where?
    Anyone else had this experience?
    Alex

    I know whats wrong now...
    My phone had been emptied after I last restored it, after I took a picture and insert the phone back to the PC. The file browser shows up again...
    That means if there is nothing in the phone, the file browser wouldn't be too bother to even show up. Weird one...

  • Possible to set the Created_by column value for File Browse?

    I'm using database account authentication and then a user gets to upload a file. Then my stored procedure reads the file. I was investigating a problem, happened to search the apex_workspace_files view and noticed the created_by column is always set to APEX_PUBLIC_USER for the files my users upload. Is there some way I can set that value when they log in, so I can track who actually did the upload?
    Thanks,
    Stew

    Dimitri,
    I was just using the standard File Browse item, so getting the blob from the workspace view. Though I've seen notes here about loading to your own table, what I had seemed to work (and was done) fairly well. There were just these little features I wanted to use...
    Thanks for the suggestion.
    Dave, I'm not sure which stored procedure you're suggesting I add the apex_custom_auth.get_username value to? I hoped that the internal File Browse routine would pick up the get_username value automatically instead of the application definition Public User value.
    Thanks,
    Stew

  • How to add a new right-click menu entry in Nautilus file browser?

    I want to add a couple of new context menu entries to Nautilus File Browser.
    So when I e.g. right-click in View Pane on a file "foobar.conf" an menu entry "edit with gedit" should appear (among the other default entries).
    When clicked the file "foobar.conf" should be passed to gedit (and gedit editor opened).
    How can I achieve this?
    Under Ubuntu there are nautilus-actions but when I try to install them in Solaris with
    pkg install nautilus-actions
    then this package is not found.
    How else can I create my own context menues?
    I would appreciate to have one script with all my context menus, which when run add them all in one step.

    To manage selected files or directories, you can use specific Nautilus variables like NAUTILUS_SCRIPT_SELECTED_FILE_PATHS.
    For more details and which variables exist, please read the content of the following URL :
    Nautilus File Manager Scripts: Questions and Answers

  • Open Cursor Issue because of file browse Item - Is this a Bug in APEX 3.2

    Hi All,
    I am using file browse Item to upload file into the database at two places in my application, but it seems whenever I am submitting those two pages, with file path or without file path, its opening an cursor which remains open after that, because of this open cursor count in the application is getting exceeding every time.
    For testing this I have made an dummy page containing just file browse item and submit button, and still it is increasing the open cursor count.
    Is this a bug in Apex file browse item or there is some other way to handle this.
    Please kindly help me in the above issue as this is affecting the production application.
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 5, 2010 9:57 PM
    Edited by: user11204334 on Dec 5, 2010 9:58 PM

    Hi,
    One observation, Apex is switching the Session ID after one got killed ? I was working on Apex page with browse Item to test open cursor count,
    after killing the SID (227) on which the open cursor count was getting increase, it APEX automatically switches to new SID(149) for that session.
    Now the problem is even if I have two SID's and one hits the maximum open cursor count, It is not switching to other SID instead the whole application becomes unavailable.
    STATNAME SID VALUE USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 74 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 227 325 APEX_PUBLIC_USER Killed
    opened cursors current 244 15 APEX_PUBLIC_USER
    opened cursors current 20 14 APEX_PUBLIC_USER
    opened cursors current 149 76 APEX_PUBLIC_USER
    opened cursors current 194 71 APEX_PUBLIC_USER
    opened cursors current 211 5 APEX_PUBLIC_USER
    opened cursors current 244 15 APEX_PUBLIC_USER
    Please kindly help in this.
    Thanks in Advance
    Thanks & Regards
    Sanjay
    Edited by: user11204334 on Dec 8, 2010 1:02 AM

  • IPad/iPhone file browser (iPhone Explorer) no longer working after iTunes update

    iTunes freezes up on me a lot when I connect my iPad, so I prefer to add files to apps using a file browser like iPhone Explorer. However, after this most recent iTunes/Quicktime update, this and other programs like it don't work.
    My computer is running Windows XP (yeah, I know it's old, but I'm not made of money!). I have an iPad 2 with the most recent iOS version installed.
    Here's the error message iPhone Explorer gives me:
    "iPhone Explorer is unable to load the app directories because the version of CoreFoundation.dll installed on your system doesn't work properly. This sucky DLL likely got on to your computer because of a recent update in the Safari web browser. Because this sucky DLL is shared between many other Apple programs, reverting back to the non-sucky version is more complicated than just uninstalling and reinstalling a couple programs. We recommend waiting a couple months for the next Safari update and hopefully Apple will have this stuff fixed then."
    I don't have Safari installed on my computer. Just iTunes (and Quicktime).
    As a result, you can't browse the app directories, so you can't add any files to apps. I tried uninstalling iTunes and replacing it with an older version, but it wouldn't open because it said the library file was created by a "newer version." I'm also having some trouble even getting iTunes to show the files in my apps (under iPad -> Apps -> scroll to bottom of the screen), but that might just be a symptom of my old iTunes-freezing problems.
    I'm kind of stuck. Anyone else experience this problem or have any suggestions? Thanks!!

    That's XP SP3 I hope?   iPhone Explorer support is shown at the bottom of the page you linked above or at [email protected] and it's them you should be asking really.
    You should be keeping iTunes and the iPad software always up to date for security reasons.   If that breaks external software then they are the ones to ask.
    If you are having problems with the iPad then try resetting it by clicking the Home and Sleep buttons simultaneously for about 10 seconds until the Apple logo appears.  You wont lose anything.
    If iTunes is acting up then try asking on that forum:  https://discussions.apple.com/community/itunes/itunes_for_windows

  • Dynamic action on File browse change event

    Hi Experts,
    apex version 4.1
    This is what i'm trying to do..
    i have a file browse control and a text field. when user selects a file, selected fiel's name (without file type extension) should be set to text field.
    I tried adding a dynamic action to file browse control's change event and within pl/sql Set Value logic i queried the wwv_flow_files and tried to return the file name it didn't work. i got no data found error. i assumed file is being inserted into wwv_flow_files when a page submission happens.
    In my second approach within the SetValue pl/sql logic i got the file browser control's (by directly accessing field, not by querying wwv_flow_files)value and did some string manipulation and tried to return only the file name. yet i got the same no data found error.
    Any idea how can i implement this ?
    Thanks in advance.
    - kurubaran

    Hi,
    I think PL/SQL approach will not work before you submit data to database.
    Have you think use $v function to get value from file browser?
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm#BGBGDGIH
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to populate DB column with filename from file browse item?

    Hi,
    Using APEX 3.1.2, I'm trying to easily allow maintenance of a filename stored in a DB column (VARCHAR2(1000)). Using the column as a file browse item seemed to be the way to go, but of course I don't want the resulting file to be uploaded and it appears as though an existing filename is not shown in a form when the row is retrieved.
    After much searching, I found Checking filename length in File Browse item before uploading , but I'm not able to connect the dots. I was thinking that I could create a hidden file browse item and use a button to call Javascript function to activate it, then save the resulting filename to my DB column item and wipe out the hidden item before it was uploaded. But the hidden item doesn't appear, so I'm not able to reference it's form input name.
    Hopefully this mess makes sense. Anyone?
    Thanks!
    Rich
    Edited by: socpres on Sep 5, 2008 2:02 PM because message was truncated after attempting to preview it first.

    Hi John,
    From what I can tell, the path of a local file browsed from a file browse item cannot be retrieved because of security concerns. Although, it seems that while Firefox 3 only returns the filename sans directory, IE6 returns the full path:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
    <head><title>Form Test</title>
    </head><body>
    <script type="text/javascript" language="JavaScript">
    function GetDirectory()
    strFile = document.FileForm.filename.value;
    intPos = strFile.lastIndexOf("\\");
    strDirectory = strFile.substring(0, intPos);
    alert(strDirectory);
    document.FileForm.Directory.value = strDirectory;
    </script>
    <form id="FileForm" name="FileForm">
    <input type="file" id="filename" name="filename" value="" onChange="GetDirectory(this.value)">
    <input type="hidden" id="Directory" name="Directory" value="">
    </form>
    </body>
    </html>
    This Win-specific code displays the path via IE6, but not in Firefox 3. Then again, I can't seem to preview posts here using FF3, either...
    Rich

  • File browse : How to keep the file path in the file browse field?

    Hello,
    I have
    1) file browse field called P2_FILE_PATH.
    2) a select list with submit : P2_REGION
    If i upload some file d:\abc.gif , then select some region in the P2_REGION,
    P2_FILE_PATH will become empty. But in the session, i can find the blob value. but not the "d:\abc.gif "
    Using the following script I could capture the value of P2_FILE_PATH in a field
    P2_TEST.
    onload="javascript:document.getElementById(P2_FILE_PATH').value = document.getElementById('P2_TEST').value;"
    P2_TEST contains d:\abc.gif .
    How to retain the file path, though some other field is selected and submitted?
    Thanks in advance.
    Regards,
    Archana

    Hello Archana,
    You can't do what you want because of some HTML security restrictions – nothing to do with APEX. As you found out, You can capture the value of this item. You can't set it. After submitting the page, the browser is the one to clear the item.
    The only workaround is to work with AJAX and not submit the page until the end of the user input phase.
    Regards,
    Arie.

Maybe you are looking for