Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Add string search to all menus that use +-  (Read 689 times)

Cerrus

  • Escaped Lunatic
    • View Profile
Add string search to all menus that use +-
« on: October 05, 2011, 05:21:14 pm »

Could you add the ability to search for a string in the current menu to all menus?  Ideally for me the key '/' would work, just like in the vi(m) text editor.

Or whatever key, doesn't matter.  If it supported regular expressions, even better.  So, if I went into stocks, I could hit say "/bars" and it would take me
down to bars.

Obviously this would be more useful with the menus involving dwarf names.  Trying to find the right dwarf to carve into a slab to get the ghost to
stop killing your poor dorfs can be a chore when you have several hundred names (I still have 3 ghosts I can't seem to get buried/carved and am only
slightly certain they don't show up in the list for slab carving because it's long and my eyes are bad...)


Logged

ravaught

  • Bay Watcher
  • Anybody seen mah beer?
    • View Profile
Re: Add string search to all menus that use +-
« Reply #1 on: October 06, 2011, 07:03:09 pm »

I like the idea of being able to search all menus. I think for engraving slabs simply having the ones that do not already have a slab engraved showing up in a different color would be a big improvement if you were too lazy to search.
Logged
..because making sense and having FUN are not mutually exclusive.

peskyninja

  • Bay Watcher
  • Natural de-selector
    • View Profile
Re: Add string search to all menus that use +-
« Reply #2 on: October 07, 2011, 12:01:36 pm »

nobody is lazy,the infinite lists make us lazy.
Logged
Burn the land and boil the sea. You can't take the sky from me

Thou son of a b*tch wilt not ever make subjects of Christian sons; we have no fear of your army, by land and by sea we will battle with thee, f**k thy mother.

Tharwen

  • Bay Watcher
    • View Profile
Re: Add string search to all menus that use +-
« Reply #3 on: October 10, 2011, 06:38:48 am »

I agree. Also, more filtering options.
Logged
[Signature]

inEQUALITY

  • Bay Watcher
  • Living On the Mirror's Edge
    • View Profile
Re: Add string search to all menus that use +-
« Reply #4 on: October 10, 2011, 07:51:27 am »

This suggestion. So simple, so elegant, so needed. I want.  :P
Logged
Quote from: Carl Sagan
It does no harm to the romance of the sunset to know a little bit about it.
If the magma cannon doesn't count, they aren't proper scientists.

zwei

  • Bay Watcher
  • [ECHO][MENDING]
    • View Profile
    • Fate of Heroes
Re: Add string search to all menus that use +-
« Reply #5 on: October 11, 2011, 01:31:34 am »

Was suggested before, but it makes a lot of sense to implement.

LastDwarf

  • Escaped Lunatic
    • View Profile
Re: Add string search to all menus that use +-
« Reply #6 on: October 31, 2011, 04:40:40 am »

This can be done in libgraphics. If using curses mode, you can search for text with the terminal emulator and mash page-down; libgraphics could emulate this. It has access to, at least, lines of text in the menus (as demonstrated by enabling TRUETYPE). If it provides a list widget to DF, then searching could be implemented to work perfectly and without hacks. (But I think that is not the case.)
Logged