Ticket #218 (accepted enhancement)
A few suggestions for templates
| Reported by: | simon | Owned by: | hllf |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Twitter Session | Version: | Mercurial Tip |
| Keywords: | Cc: |
Description
I'm wondering if some improvements can be made to the template system. I have two in mind that I think would benefit people a lot.
The first, which is slightly less important, is to enhance the template code itself (add and / or statements, else, perhaps ElseIf?, and so on). I have a few ideas of how this would be done, but I'll leave it to people here unless someone specifically wants me to come out and share my thoughts. I'm an amateur programmer at best, I just know basic concepts.
The second idea I recently thought of, is to have a SoundPlay? function in templates. This would make it possible, for instance, to play a sound when passing a tweet with a particular phrase in it, or more importantly, a tweet with geolocation data or something with a playable audio file attached. In my opinion, this is a lot more efficient than having the screen reader say *audio* or something similar.
While we're talking about templates, there is no default clipboard templates for anything. I realize most people don't care, but if this is easy to implement, I wouldn't mind having it. I have fairly advanced clipboard templates depending on the type of buffer, so it'd be nice not to have to rewrite or copy them whenever I open a new one.
Also this is just an extra suggestion that really doesn't haev to be implemented, but it would be cool to have an actual template on each buffer for the text that is spoken each tie new data is retrieved.
$count new post$if(count>1){s} in list tmeline for close friends
could be changed to:
$count new tweet$if(count>1){s} from close friends.
Kind of not a necessity, but it's a thought I had at one point. The announcements have been cleaned up a little in latest source (for instance rather than saying "three new posts in simon818's timeline", it would say "three new posts from simon818",) but it'd be nice to have that flexibility. I'll be interested to hear other people's input on this. I realize the developers have a lot of work to do, so I don't expect this to all be done in the near future, if ever. But I figured I'd put it out there, anyway.
