Page 1 of 1

allow word definition (e.g. to include special chars)

Posted: Fri Jan 30, 2015 2:01 pm
by kevinHealy
Right now, if I double click on a string, Textpad selects the entire string only if that string does not contain any special chars (like punctuation).

In other words, it defines a word to be contiguous alpha-numeric chars, but does not include either whitespace (which I am OK with) nor special chars (which can be bad).

There are many times that I need a "word" to be defined as including special chars like punctuation.

For example: passwords. Many websites require at least one special char in their passwords. But Textpad's current word definition will not allow you to double click on such a password to select it. You have to manually swipe it with your mouse, which is very annoying.

The cure is that Textpad needs an option wherein a user can define what a word is.

Posted: Fri Jan 30, 2015 3:09 pm
by ak47wong
TextPad already has this feature. Click View > Document Properties > Syntax, then in Other characters in words enter the punctuation that you want to be considered as part of a word.

This only affects the current document. To make the change permanent, click Configure > Preferences, expand the Document Classes category and make the change in the Syntax tab for each document class as required.

Posted: Sat Jan 31, 2015 12:50 am
by kevinHealy
ak47wong: thanks much for pointing that out.

The intent of that Syntax dialog is what I want, but the current implementation leaves something to be desired: you need to manually type in all the special characters that you want to add. This is tedious and error prone.

I was hoping for something more convenient, like a check box for "include all punctuation".

Perhaps better would be 2 radio buttons named "add/remove punctuation" which automatically populate/depopluate those chars from the list. The list itself would be retained so that you could manually edit it as desired