Quicktext

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
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".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
gebi84
Posts: 12
Joined: Wed Nov 28, 2007 10:06 pm
Contact:

Quicktext

Post by gebi84 »

I miss a feature like this: http://blog.joaomoreno.com/quicktext/
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

This will be available with next major version.
You will be able to assign special words (like HTML in your example) to some code block. Once you have this "HTML|" and press Ctrl-J, you will get the code you have assigned for this ID "HTML" in your code snippets.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

woot! Very exciting.

Gatis, any chance of replacing ctrl+j with 'tab' or ctrl+enter or shift+enter or something via user keyboard shortcuts? I guess I'm just wondering about a key combo that is a more standard 'ok' or 'do something' sort of key combo. I hope I'm making sense.

Will
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

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?
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

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. :)
gebi84
Posts: 12
Joined: Wed Nov 28, 2007 10:06 pm
Contact:

Post by gebi84 »

i prefer strg+enter

Is it possible to tab in the code snippet also, after your implementation?

like this:

<input>

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
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

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.
As far as I know, we are not removing anything concerning this.
Not sure I got your idea about this and following sentences, though: "that along with a token for 'last token entered' would be perfect."
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
Can you please give us some code example of how this would look like? By the way, what does "STRG" stand for? Thanks!
gebi84
Posts: 12
Joined: Wed Nov 28, 2007 10:06 pm
Contact:

Post by gebi84 »

oh sorry! STRG is the same as CTRL ;-)

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]
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Post by Gatis »

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?
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

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. :)
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."
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.

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>
when those lists get long, and they do, having a snippet that looked like this would make my day a nice bit better:

Code: Select all

<option value="%[Enter Value]%">%[RepeatLastValue]%</option>
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
Post Reply