{"action":"created","issue":{"url":"https://api.github.com/repos/aperezdc/vim-template/issues/77","labels_url":"https://api.github.com/repos/aperezdc/vim-template/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/aperezdc/vim-template/issues/77/comments","events_url":"https://api.github.com/repos/aperezdc/vim-template/issues/77/events","html_url":"https://github.com/aperezdc/vim-template/issues/77","id":103322095,"number":77,"title":"template not recognized","user":{"login":"Konfekt","id":7195553,"avatar_url":"https://avatars.githubusercontent.com/u/7195553?v=3","gravatar_id":"","url":"https://api.github.com/users/Konfekt","html_url":"https://github.com/Konfekt","followers_url":"https://api.github.com/users/Konfekt/followers","following_url":"https://api.github.com/users/Konfekt/following{/other_user}","gists_url":"https://api.github.com/users/Konfekt/gists{/gist_id}","starred_url":"https://api.github.com/users/Konfekt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konfekt/subscriptions","organizations_url":"https://api.github.com/users/Konfekt/orgs","repos_url":"https://api.github.com/users/Konfekt/repos","events_url":"https://api.github.com/users/Konfekt/events{/privacy}","received_events_url":"https://api.github.com/users/Konfekt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aperezdc/vim-template/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"muff1nman","id":1531528,"avatar_url":"https://avatars.githubusercontent.com/u/1531528?v=3","gravatar_id":"","url":"https://api.github.com/users/muff1nman","html_url":"https://github.com/muff1nman","followers_url":"https://api.github.com/users/muff1nman/followers","following_url":"https://api.github.com/users/muff1nman/following{/other_user}","gists_url":"https://api.github.com/users/muff1nman/gists{/gist_id}","starred_url":"https://api.github.com/users/muff1nman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muff1nman/subscriptions","organizations_url":"https://api.github.com/users/muff1nman/orgs","repos_url":"https://api.github.com/users/muff1nman/repos","events_url":"https://api.github.com/users/muff1nman/events{/privacy}","received_events_url":"https://api.github.com/users/muff1nman/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-26T17:10:32Z","updated_at":"2015-09-21T19:15:13Z","closed_at":null,"body":"There's a folder `~/.config/templates` that contains a file `.sh` and the following `vim-template` setup\r\n```vim\r\n  let g:templates_directory = empty($XDG_CONFIG_HOME) ? expand('$HOME') . '/.config/templates' : expand('$XDG_CONFIG_HOME') . '/templates'\r\nlet g:templates_global_name_prefix = ''\r\nlet g:templates_debug = 1\r\n```\r\n\r\nHowever, `:e t.sh` gives\r\n\r\n```vim\r\nNo template found\r\nNo template found\r\nNo template found\r\ntemplate: /home/enno/.config/templates/article.tex got scored: 0\r\ntemplate: /home/enno/.config/templates/beamer.tex got scored: 0\r\ntemplate: /home/enno/.config/templates/html got scored: 0\r\ntemplate: /home/enno/.config/templates/letter.tex got scored: 0\r\ntemplate: /home/enno/.config/templates/poster.tex got scored: 0\r\ntemplate: /home/enno/.config/templates/report.tex got scored: 0\r\ntemplate: /home/enno/.config/templates/tex got scored: 0\r\ntemplate: /home/enno/.config/templates/xml got scored: 0\r\ntemplate: /home/enno/.config/templates/zsh got scored: 0\r\nNo template found\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.bash got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.c got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.c++ got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.cc got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.cmake got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.cpp got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.css got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.cxx got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.f got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.f90 got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.h got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.hs got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.html got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.humans.txt got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.java got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.jl got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.js got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.lhs got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.lua got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.m got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.mk got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.ml got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.mm got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.php got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.pl got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.pls got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.pm got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.pro got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.py got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.rb got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.robots.txt got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.rs got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.sh got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.sql got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.tex got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.txt got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.xml got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.xsl got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=.zcml got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=GNUmakefile got scored: 0\r\ntemplate: /home/enno/.config/.vim/plugged/vim-template/templates/=template=Makefile got scored: 0\r\nNo template found\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/aperezdc/vim-template/issues/comments/142082008","html_url":"https://github.com/aperezdc/vim-template/issues/77#issuecomment-142082008","issue_url":"https://api.github.com/repos/aperezdc/vim-template/issues/77","id":142082008,"user":{"login":"Konfekt","id":7195553,"avatar_url":"https://avatars.githubusercontent.com/u/7195553?v=3","gravatar_id":"","url":"https://api.github.com/users/Konfekt","html_url":"https://github.com/Konfekt","followers_url":"https://api.github.com/users/Konfekt/followers","following_url":"https://api.github.com/users/Konfekt/following{/other_user}","gists_url":"https://api.github.com/users/Konfekt/gists{/gist_id}","starred_url":"https://api.github.com/users/Konfekt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Konfekt/subscriptions","organizations_url":"https://api.github.com/users/Konfekt/orgs","repos_url":"https://api.github.com/users/Konfekt/repos","events_url":"https://api.github.com/users/Konfekt/events{/privacy}","received_events_url":"https://api.github.com/users/Konfekt/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T19:15:13Z","updated_at":"2015-09-21T19:15:13Z","body":"```sh\r\ndrwxr-xr-x  2 enno users  151 Sep 21 14:43 ./\r\ndrwxr-xr-x 21 enno users 4.0K Sep 21 14:19 ../\r\n-rw-r--r--  1 enno users 1.6K Aug 24 14:02 article.tex\r\n-rw-r--r--  1 enno users 1.5K Aug 19 17:46 beamer.tex\r\n-rw-r--r--  1 enno users  135 Mar 19  2015 .html\r\n-rw-r--r--  1 enno users 4.7K Aug 24 14:02 letter.tex\r\n-rw-r--r--  1 enno users  458 Sep 21 14:43 note.tex\r\n-rw-r--r--  1 enno users 1.4K Aug 24 14:02 poster.tex\r\n-rw-r--r--  1 enno users  594 Aug 24 14:01 report.tex\r\n-rwxr-xr-x  1 enno users   19 Jun  4 15:44 .sh*\r\n-rw-r--r--  1 enno users   91 Mar 19  2015 .xml\r\n-rwxr-xr-x  1 enno users   20 Jun  4 09:58 .zsh*\r\n```\r\nThanks! The error persists also with the default `g:templates_global_name_prefix` and accordingly renamed file names."}}