ont avatar ont committed 9584a0c Merge

(+) merging with in-home changes

Comments (0)

Files changed (3)

+[ui]
+username = ont <ont.rif@gmail.com>
+logtemplate = {rev}:{node|short} [{desc|ont_time}] {date(date, '%d-%m-%Y %H:%M')} {desc|firstline}\n
+
+[alias]
+tlog = !$HG log --template '{rev}: {author|user} {desc|firstline}\n' --color always | less
+fetch = !$HG pull && $HG update
+
+[extensions]
+ont_tools = ~/bin/hg/ont_tools.py
+hgext.bookmarks =
+hggit =
+color =
+mq =
+purge =
+hgshelve =
+
+[hostfingerprints]
+github.com = ce:67:99:25:2c:ac:78:12:7d:94:b5:62:2c:31:c5:16:a6:34:73:53
+#code.google.com = 99:9b:2c:ac:bf:65:cc:74:61:df:ed:05:6d:f6:22:a9:d6:e1:ba:9f
+code.google.com = d0:9c:03:be:6d:8a:80:32:ea:52:9b:95:f4:26:2c:55:87:fb:df:a7
 Bundle 'gmarik/vundle'
 
 Bundle 'Lokaltog/vim-powerline'
-"let g:Powerline_symbols = 'fancy'
-
-Bundle 'kien/rainbow_parentheses.vim'
+"Bundle 'kien/rainbow_parentheses.vim'
 "Bundle 'vim-scripts/Rainbow-Parentheses-Improved-and2'
 "Bundle 'rainbow.zip'
 
 let g:EasyMotion_leader_key = 't'
 
 "Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
-Bundle 'ZenCoding.vim'
+"Bundle 'ZenCoding.vim'
+Bundle 'mattn/emmet-vim'
+
 Bundle 'davidhalter/jedi-vim'
 
 Bundle 'VimExplorer'
 "Bundle 'bufexplorer.zip'
 "Bundle 'https://bitbucket.org/ns9tks/vim-fuzzyfinder'
 
-
 " L9 is needed by FuzzyFinder
 "Bundle 'L9'
 "Bundle 'FuzzyFinder'
 set pfn='Nimbus\ Mono\ L'
 set penc=utf-8
 
-au VimEnter * RainbowParenthesesToggle
-au Syntax * RainbowParenthesesLoadRound
-au Syntax * RainbowParenthesesLoadSquare
-au Syntax * RainbowParenthesesLoadBraces
+"au VimEnter * RainbowParenthesesToggle
+"au Syntax * RainbowParenthesesLoadRound
+"au Syntax * RainbowParenthesesLoadSquare
+"au Syntax * RainbowParenthesesLoadBraces
 "au VimEnter * RainbowToggle
 
 
 "let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
 
 " automatically open and close the popup menu / preview window
-au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
-set completeopt=menuone,menu,longest,preview
+"au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
+"set completeopt=menuone,menu,longest,preview
 
 
 augroup Binary
+import re
+from mercurial import templatefilters
+
+def ont_mood(s):
+    m = re.search(r'^mood:\s(.*)$', s, re.MULTILINE)
+    return m and m.group(1) or ' ' * 3
+
+def ont_time(s):
+    m = re.search(r'^time:\s(.*)$', s, re.MULTILINE)
+    return m and m.group(1) or '--:--'
+
+def extsetup(ui):
+    templatefilters.filters["ont_mood"] = ont_mood
+    templatefilters.filters["ont_time"] = ont_time
+
+if __name__ == '__main__':
+    s = """ test me
+here and 
+there
+
+mood: sdfsdf
+time: ololo
+sdfsdf
+"""
+    print ont_mood( s ) + 'xxx'
+    print ont_time( s ) + 'xxx'
+
+# Then run:
+#
+#   hg tip --config extensions.upper=~/tmp/upper.py --template "{author|upper}\n"
+#
+# to test
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.