Randall A Sindlinger on 25 Apr 2011 11:28:57 -0700 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] fold output of 'tree' with 'vim'? |
Hi all, I've googled for this a couple of times, but not been able to find the answer I want - so maybe I'm just trying to do it wrong. I'd like to be able to take a file directory structure, eg, the kind of output you can get with 'tree -if' [1], and view it in such a way that I can collapse the directories. I know there are file browsers all over the place that do this, by clicking on the little + or - beside the directory name. _But_ I want one that doesn't need to work on the live filesystem; rather, instead just work on an input file. It *seems* like vim should be able to do this for me by using it's folding feature, but I've not had any luck. Any suggestions? Thanks, -Randall [1] Example output from 'tree -if' ./meta-base-seas ./meta-base-seas/base-addons ./meta-base-seas/base-addons--packages-not-found ./meta-base-seas/base-addons--packages-processed ./meta-base-seas/base-addons--packages-seen ./meta-base-seas/base-addons--too-many-results ./meta-base-seas/base-addons.r2r.err ./meta-base-seas/base-addons.r2r.out ./meta-base-seas/renamed-pkgs ./meta-base-seas/renamed-pkgs.names ./meta-base-seas/renamed-pkgs.names--packages-processed ./meta-base-seas/renamed-pkgs.names--packages-seen ./meta-base-seas/rpms-for-vetting ./meta-software-SUSE ./meta-software-SUSE/rpm-for-vetting.2nd-round.err ./meta-software-SUSE/rpm-for-vetting.err ./meta-software-SUSE/rpms-for-vetting ./meta-software-SUSE/rpms-for-vetting.2nd-round ./meta-software-SUSE/zypper-kde+gnome ./meta-software-SUSE/zypper-kde+gnome--packages-processed ./meta-software-SUSE/zypper-kde+gnome--packages-seen ./meta-software-SUSE/zypper-kde+gnome--too-many-results ./meta-software-SUSE/zypper-kde+gnome.r2r.err ./meta-software-SUSE/zypper-kde+gnome.r2r.out ./meta-software-seas ./meta-software-seas/rpms-for-vetting ./meta-software-seas/software-addons ./meta-software-seas/software-addons--packages-not-found ./meta-software-seas/software-addons--packages-processed ./meta-software-seas/software-addons--packages-seen ./meta-software-seas/software-addons--too-many-results ./meta-software-seas/software-addons.r2r.err ./meta-software-seas/software-addons.r2r.out ./test-refs ./test-refs/freeze.1.test ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug