Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combining vim-template and nautilus document templates naming conventions #91

Closed
iagomosqueira opened this issue Nov 4, 2015 · 6 comments
Labels

Comments

@iagomosqueira
Copy link

I am trying to unify the template files used by vim-template and those available with Nautilus "New document" context menu. I have pointed both vim-template and Nautilus to the same folder when looking for template files, but I haven't found a way of merging both naming conventions.

Nautilus wants filed to be named R\ file.R to show as "R file" in the context menu, but vim-template expects a common filename and only different extensions, say file.R.

Is there any way of specifying g:templates_global_name_prefix to achieve this? Would I need to modify every time this variable is used to create the right string by pasting the extension and a space before g:templates_global_name_prefix?

@muff1nman
Copy link
Collaborator

Interesting. Do you have a reference that describes the nautilus document templates in greater detail?

@iagomosqueira
Copy link
Author

Not a full Nautilus reference, found out through these links

http://gnome-look.org/content/show.php?content=39317

http://askubuntu.com/questions/208291/how-to-create-a-new-blank-file-in-nautilus-3-6-and-above

and testing it myself. Could not find anything about changing Nautilus naming convention.

@muff1nman
Copy link
Collaborator

The one thing I can think of that may work for you is specifying an empty prefix: let g:templates_global_name_prefix = "". Then you would have templates named like txt without any prefix.

@iagomosqueira
Copy link
Author

I am not sure that will work with Nautilus. But if no easy solution is
available I do not think it is worth too much effort.

On 27/11/15 09:27, muff1nman wrote:

The one thing I can think of that may work for you is specifying an empty prefix: let g:templates_global_name_prefix = "". Then you would have templates named like txt without any prefix.


Reply to this email directly or view it on GitHub:
#91 (comment)

@muff1nman
Copy link
Collaborator

I thought I tested it and had it working, but other than that I cannot think of an easy solution.

@iagomosqueira
Copy link
Author

Thanks. Not such an essential feature.

On 13/12/15 01:41, muff1nman wrote:

I thought I tested it and had it working, but other than that I cannot think of an easy solution.


Reply to this email directly or view it on GitHub:
#91 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants