Quicktext
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Quicktext
I miss a feature like this: http://blog.joaomoreno.com/quicktext/
The way we have planned it at the moment, it would not be possible to change this hot-key (Ctrl-J). It is the default hot-key for snippets, built in the text editor component we are using.
However, I have heard about the TAB functionality (textmate?), that it replaces a keyword with corresponding snippet when TAB key is pressed after the keyword. We could do this I think. But really have not thought about this much.
Any other suggestions, comments?
However, I have heard about the TAB functionality (textmate?), that it replaces a keyword with corresponding snippet when TAB key is pressed after the keyword. We could do this I think. But really have not thought about this much.
Any other suggestions, comments?
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
tab would be wonderful. just seems like it would feel more fluid than ctrl+anything.
Will replacement tokens still be available? That along with a token for 'last token entered' would be perfect. That would help with the <option>foo</option> type situations.
In that particular case, being able to text transform the second one (to caps, sentence....) would be incredible so that it could be <option>Foo</option>. Basically the same sort of stuff you want when normally dealing with string variables in php/js/cf or whatever. stringreplace, change case, concatenate.... but I don't want to get too greedy or lose focus.
Will replacement tokens still be available? That along with a token for 'last token entered' would be perfect. That would help with the <option>foo</option> type situations.
In that particular case, being able to text transform the second one (to caps, sentence....) would be incredible so that it could be <option>Foo</option>. Basically the same sort of stuff you want when normally dealing with string variables in php/js/cf or whatever. stringreplace, change case, concatenate.... but I don't want to get too greedy or lose focus.

As far as I know, we are not removing anything concerning this.syrupcore Will replacement tokens still be available? That along with a token for 'last token entered' would be perfect. That would help with the <option>foo</option> type situations.
Not sure I got your idea about this and following sentences, though: "that along with a token for 'last token entered' would be perfect."
Can you please give us some code example of how this would look like? By the way, what does "STRG" stand for? Thanks!gebi84 you type input STRG+Enter and you are in the first placehodler, retype STRG+Enter and you are on the second placeholder and so on
oh sorry! STRG is the same as CTRL 
you can see it in the Video: http://blog.joaomoreno.com/quicktext/
Example code-snippet:

you can see it in the Video: http://blog.joaomoreno.com/quicktext/
Example code-snippet:
Code: Select all
<html>
<head>
<title>$</title>
$
</head>
<body>
$
</body>
</html>
[code]
This concept of "Hot links" or cursor "placeholders" seems to be an interesting idea.
At the moment we have not planned this. You could only specify a place for cursor after the template is inserted.
However, the template feature is not fully developed jet, so we might think of adding something like that.
Does anybody else think these "placeholders" would be worth implementing?
At the moment we have not planned this. You could only specify a place for cursor after the template is inserted.
However, the template feature is not fully developed jet, so we might think of adding something like that.
Does anybody else think these "placeholders" would be worth implementing?
- syrupcore
- Top Contributor
- Posts: 917
- Joined: Thu Jul 21, 2005 12:58 am
- Location: Portland, Oregon, usa
- Contact:
seems like placeholders work exactly like snippet tokens. difference is that they're within the code instead of dialog boxes. I'm not sure how much more useful they are but I often have limited vision. 
when those lists get long, and they do, having a snippet that looked like this would make my day a nice bit better:
where the %[RepeatLastValue]% field would auto insert your last entry into the dialog box. In this case, I could type china once and get it populated into both token spots.
The rest of my babble was about extending that idea. If the %[RepeatLastValue]% is just a string, it might be interesting and useful to be able to manipulate that string in the same ways we're accustomed to in programming languages. Maybe something like %[RepeatLastValue(Captialize)]% so that "china" in the first slot would become "China" when inserted via RepeatLastValue. Again though, perhaps this is too much. I'm just thinking out loud. Use what's useful, ignore the rest.
Will

That's referring to an older request. can't find it right now but there are times in daily HTML grind work where you need to repeat something a few times - over and over again. html select boxes are a prime example.Gatis wrote:Not sure I got your idea about this and following sentences, though: "that along with a token for 'last token entered' would be perfect."
Code: Select all
<select>
<option value="argentina">Argentina</option>
<option value="china">China</option>
<option value="england">England</option>
<option value="latvia">Latvia</option>
</select>
Code: Select all
<option value="%[Enter Value]%">%[RepeatLastValue]%</option>
The rest of my babble was about extending that idea. If the %[RepeatLastValue]% is just a string, it might be interesting and useful to be able to manipulate that string in the same ways we're accustomed to in programming languages. Maybe something like %[RepeatLastValue(Captialize)]% so that "china" in the first slot would become "China" when inserted via RepeatLastValue. Again though, perhaps this is too much. I'm just thinking out loud. Use what's useful, ignore the rest.

Will