From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Burtzlaff Subject: combine orgmode and file system browsing Date: Sat, 21 Mar 2009 04:11:13 +0100 Message-ID: <20090321041113.686f8bba.andy13@gmx.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Sat__21_Mar_2009_04_11_13_+0100_At6MAlSOvDvvw838" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LkpgI-0001oj-2v for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 21:07:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LkpgC-0001oB-LC for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 21:07:20 -0400 Received: from [199.232.76.173] (port=59626 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkpgC-0001o8-Ed for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 21:07:16 -0400 Received: from mail.gmx.net ([213.165.64.20]:35473) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LkpgB-0001Nc-PV for emacs-orgmode@gnu.org; Fri, 20 Mar 2009 21:07:16 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This is a multi-part message in MIME format. --Multipart=_Sat__21_Mar_2009_04_11_13_+0100_At6MAlSOvDvvw838 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello everyone, while using orgmode to organize data that is strongly bound to files and directories, I came to the point where in addition to linking from the orgfile to the target file/directory I longed to have it the other way round, i.e. getting information about the files/directories from the orgfile while browsing the filesystem. That led to the following idea: Orgmodes folding and linking capabilities are easily combined to make rudimentary but comfortable file system browsing: * [[file:test/dirA][dirA]] ** [[file:test/dirA/subdirA][subdirA]] *** [[file:test/dirA/subdirA/some_file][some_file]] ** [[file:test/dirA/another_file][another_file]] * [[file:test/dirB][dirB]] Attached is a bash-script that generates this representation from a given subtree of the filesystem as a proof of concept. For each file/directory displayed search for any link to it in a given orgfile and - provide links back to these occurrences and/or - display the tags and associated content (read-only). The obvious weakness inherited from linking itself is synchronization on directory structure changes. A possible solution would be to store ids as hidden files for each directory or even for each file that is referred to. Does anybody else see the benefits of such a mode? Andreas --Multipart=_Sat__21_Mar_2009_04_11_13_+0100_At6MAlSOvDvvw838 Content-Type: application/x-shellscript; name="filesystem_to_org.sh" Content-Disposition: attachment; filename="filesystem_to_org.sh" Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKCkRJUj0kMQoKZnVuY3Rpb24gdG9PcmdSZWMgewpsb2NhbCBCVUZGRVI9IiIK Zm9yIGQgaW4gJCggZWNobyAiJChmaW5kICQxIC1tYXhkZXB0aCAxIC10eXBlIGQgKSIgfCB0YWls IC1uICsyICk7IGRvCgpCVUZGRVI9IiR7QlVGRkVSfQoqIFtbZmlsZToke2R9XVskKGJhc2VuYW1l ICR7ZH0pXV0iCgp0b09yZ1JlYyAke2R9CkJVRkZFUj0ke0JVRkZFUn0kKCBlY2hvICIke1JFVFVS Tl9CVUZGRVJ9IiB8IHNlZCAicy9eXCovKiovIiB8IHNlZCAicy9eIC8gIC8iICkKCmRvbmUKCmZv ciBmIGluICQoZmluZCAkMSAtbWF4ZGVwdGggMSAtbm90IC10eXBlIGQpOyBkbwoKQlVGRkVSPSIk e0JVRkZFUn0KKiBbW2ZpbGU6JHtmfV1bJChiYXNlbmFtZSAiJHtmfSIgKV1dIgoKZG9uZQoKUkVU VVJOX0JVRkZFUj0ke0JVRkZFUn0KfQoKdG9PcmdSZWMgJHtESVJ9CmVjaG8gIiQoIGVjaG8gIiR7 UkVUVVJOX0JVRkZFUn0iIHwgdGFpbCAtbiArMiApIgo= --Multipart=_Sat__21_Mar_2009_04_11_13_+0100_At6MAlSOvDvvw838 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Multipart=_Sat__21_Mar_2009_04_11_13_+0100_At6MAlSOvDvvw838--