Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When you create a new file in kate or gedit they name them like "Untitled1" or "Unsaved Document 1". How can you change this to some other string$n pattern of your choice?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

I just checked the source codes of both the softwares and unfortunately we can't change those names, as those are hardcoded :(

For Kate : http://bazaar.launchpad.net/~neon/kate/kate/view/head:/part/document/katedocument.cpp#L3652

For gedit : https://git.gnome.org/browse/gedit/tree/gedit/gedit-document.c#n1223

share|improve this answer
    
Hmm. Interesting. So would changing that and re-compiling be a option? –  Seth Apr 6 '13 at 20:08
    
Yup. Probably, making them to read from a config file would look great.... –  thefourtheye Apr 6 '13 at 20:10
2  
Both these strings are being looked up through a i18n/localisation utility. I'm not sure if either handles these strings at runtime, or if they're hard-coded at compile time - but if you could provide your own localisation strings, that might work without a full recompile. –  Oli Apr 6 '13 at 20:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.