Nautilus Tips
1. Nautilus¿¡¼ ÇÑ±Û À§Å°ÆÄÀÏ À̸§ º¸±â ¶Àü À§Å°¸¦ ·ÎÄà ¸Ó½Å¿¡¼ ÀÚ·á Á¤¸®¿ëÀ¸·Î »ç¿ëÇÕ´Ï´Ù. ±×·¡¼ À§Å° ÆäÀÌÁö¸¦ ÀÛ¼ºÇÒ ¶§µµ ·ÎÄøӽſ¡¼, Á÷Á¢ vi·Î ¿¾î¼ ÀÛ¼ºÇÏ°í °íÄ¡ÁÒ. ±Ùµ¥ À§Å° ÆäÀÌÁö À̸§ÀÌ ÇѱÛÀ» °æ¿ì, ±×°Íµµ Á¦°¡ »ç¿ëÇÏ´Â ¸ðÀθðÀÎ À§Å°ÀÇ °æ¿ì¿¡´Â ÇѱÛÆäÀÌÁöÀ̸§À» ¸ðµÎ uri¿¡ »ç¿ëÇϱâ À§Çؼ quote½ÃÄѹö¸®´Â ÅͶó ÇѱÛÆäÀÌÁö À̸§ÀÌ ¼û¾î¹ö¸®°Ô µÇ´õ±º¿ä. Á¦°¡ "·Â»çÕöÞÀ"¶ó´Â ÆäÀÌÁö´Â "_eb_a0_a5_ec_82_ac_e6_ad_b7_e5_8f_b2"·Î ÀúÀåµÇ´õ±º¿ä. ±×·¡¼ python-nautilus extensionÀ¸·Î À§Å°À̸§À» º¼ ¼ö ÀÖ´Â ½ºÅ©¸³Æ®¸¦ ¸¸µé¾ú½À´Ï´Ù.
¸ÕÀú ½ºÅ©¸°¼¦ºÎÅÍ,
Upload new Attachment "screenshot-wikiName.png" or paste a new png picture
¸ÕÀú ÇÊ¿äÇÑ °ÍµéÀº,
shell > apt-get install python2.3-gtk2 python2.3 python-nautilus nautilusÀÌ·¸°Ô ¼³Ä¡°¡ ³¡³ª¸é, /usr/lib/nautilus/extensions-1.0/python ·Î °¡¼ ¿©·¯ ½ºÅ©¸³Æ®µéÀ» È®ÀÎÇÕ´Ï´Ù. ÀÌ ½ºÅ©¸³Æ®µéÀ» Âü°íÇؼ ´Ù¸¥ extensionµéµµ ÀÛ¼ºÇÒ ¼ö ÀÖ°ÚÁÒ. ¾Æ·¡ ½ºÅ©¸³Æ®¸¦ wikiName.py¶ó´Â À̸§À¸·Î /usr/lib/nautilus/extensions-1.0/python ¾Æ·¡¿¡ ÀúÀåÇÕ´Ï´Ù.
import os, sre
import urllib import nautilus class WikiColumnExtension(nautilus.ColumnProvider, nautilus.InfoProvider): RE_WIKINAME = sre.compile("_[a-zA-Z0-9]{2}") def __init__(self): pass def get_columns(self): return nautilus.Column( \ "NautilusPython::wikiname_column", \ "wiki_name", "Wiki Name", "wiki name"), def update_file_info(self, file): if file.get_uri_scheme() != 'file': file.add_string_attribute('wiki_name', "") return __f = os.path.basename(urllib.unquote(file.get_uri()[7:])) if not self.RE_WIKINAME.findall(__f) : __filename = __f else : __filename = urllib.url2pathname(__f.replace("_", "%")) __filename0 = __filename[1:] b = sre.compile("[A-Z][a-z]").findall(__filename0.strip()) for i in b : __filename0 = __filename0.replace(i[0], " %s" % i[0]) __filename = __filename[0] + __filename0 try : filename = unicode(__filename, "euc-kr").encode("utf-8") except : filename = __filename filename = filename.replace("/", " / ") file.add_string_attribute('wiki_name', filename) shell > nautilus -qnautilus·Î À§Å° ÆäÀÌÁö°¡ ÀÖ´Â µð·ºÅ丮·Î À̵¿Çؼ, ¸Þ´º View->Visible Columns¸¦ ¼±ÅÃÇÏ°í "Wiki Name"À» Àû´çÇÑ À§Ä¡·Î ¿Å°ÜÁÖ¸é, ¸ðµç Áغñ´Â ³¡³³´Ï´Ù. |
You will gain money by a speculation or lottery. |