Modify

Opened 17 hours ago

Last modified 14 hours ago

#24516 new enhancement

Improve Autocompletion

Reported by: GerdP Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description (last modified by GerdP)

When tagging guidepost I often have to enter several tag keys like
direction_north=*, direction_north:route=*, and direction_north:symbol, followed by similar tags for other directions. Sometimes I only need direction=*
Autocompletion too often suggests the longest match, e.g. when I start typing dir it may suggest key direction_northwest:symbol instead of only direction.
I typically have to either type a lot more characters or I use the cursor to get to wanted position. Both are time consuming.
Is there an option to tell JOSM that it should use the shortest match instead? So, e.g. suggest
direction when typing dir, and then, after typing "_n" it should suggest direction_north.
I think I have the same problem with tag keys like bicycle:left:surface, bicycle:left:traffic_sign etc.

If there is no such option: Wouldn't it be better to do this by default?

I think the same is true for tag values, e.g. the value for direction_northwest:symbol can be
train_station;none;train_station. Now, when I tag a differnt guidepost and enter the value for tag direction_northwest:symbol JOSM might suggest train_station;none;train_station instead of only train_station when I start typing "t" assuming that there is a tag direction_northwest:symbol=train_station in the data or in the presets.

Attachments (0)

Change History (4)

comment:1 by GerdP, 17 hours ago

Description: modified (diff)

comment:2 by GerdP, 16 hours ago

Description: modified (diff)

comment:3 by stoecker, 16 hours ago

I think it's taking the first suggestion in the list and the longer ones with _ are probably before the shorter ones. Solution to this would be to change sorting or allow different sorting methods.

  • alphabetical
  • personal use count
  • use count in database
  • somehow weighted (i.e. is in presets, usage, ...)
Last edited 16 hours ago by stoecker (previous) (diff)

comment:4 by GerdP, 14 hours ago

I'll have a closer look at the current implementation. Another approach is to change the way how Ctrl+Cursor left/right moves to the next position. It would help to stop at the special characters like ":" and "_".

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to GerdP.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.