[josm-dev] Autocompletion of numbers and access to presets

D Tucny d at tucny.com
Fri Feb 13 02:48:16 GMT 2009


Hi folks,

I've been adding house/building/street numbers quite a bit recently, and
something that's been frustrating me a bit has been autocompletion... For
some things, such as keys and fixed values, autocompletion is nice, but
especially for numbers, it can be a pain... My work flow is this, add node,
click add property, type ad, autocompletes to addr:housenumber, tab to value
box, type number, hit enter... Quite quick to do, and with house numbers
there's a lot of them, so, speed is good... but... a problem I had at the
start of entering house numbers, and one that's still cropping up at times
is that the number gets auto completed... the result is that when I'm adding
numbers, such as 11, 13, 15, I end up with 11, 132 and 154 due to the fact
that 132 and 154 exist on another street somewhere... It's getting to be
less of a problem as there are more numbers in the area, i.e. once 13 and 15
are in, it won't try to autocomplete subsequent 13s and 15s to longer
numbers, but, it's still catching me out at times, especially if I've
grabbed a different area...

Using the address preset may help, but, as it stands, presets are not easily
accessible, or, perhaps they are only easily accessible and not quickly
accessible... I can put a shortcut on the toolbar which would help, but, I
can't seem to apply a keyboard shortcut, if I want to access the address
preset using only the keyboard, alt-p opens the present menu, but then I
have to press the up arrow 10 times, the right arrow once then the up arrow
twice... Not exactly quick...

So... a couple of things that could help as far as I see...

1) The ability to restrict autocompletion to tags only or tags and a list of
tags where the value can be autocompleted, or inversely, where the value
shouldn't be autocompleted... Not sure how simple that would be to
implement... Then autocompletion of addr:housenumber could be disabled...

2) The ability to access items off the presets menu by key strokes, i.e.
Alt-P brings up the presets menu as now, 'b' opens the Building submenu, 'a'
opens the Addresses preset window... Then Alt-P, b, a would get me to where
I needed to be quicker than using the mouse...

3) The ability to assign keyboard shortcuts to preset items, right now it
doesn't look like they can be assigned shortcuts in the shortcuts prefs, it
could be useful if they could be as the keyboard access to a specific preset
could be shortened beyond what's proposed in 2 if you need access to a
certain preset often...

I'm not sure if any of these options exist as it stands, there doesn't seem
to be a way to configure them in the preferences screen if they do... and
I'm afraid I'm not sure how hard it would be to implement them... But,
potentially some things that could be considered if someone is those bits of
the code...

Thanks,

d



More information about the josm-dev mailing list