Prompt wth List - specify a monospace font

Hello,

Is it possible to specify a monospace font when using Prompt with List?
Here's an example where every line has exactly 50 digits, but the lines are not aligned.

All the lines are aligned when I view the text file in BBEdit with Melo monospace font.

Thanks,
ChrisQ

Hi, @ChrisQ. The only way I know to do it has a serious limitation. See the embedded comment for details.

Download: PWL (Monospace).kmmacros (5.3 KB)

Macro-Image


Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.

System Information
  • macOS 13.5.1 (22G90)
  • Keyboard Maestro v10.2

Hi @_jims, thanks for the macro. The Prompt with List values look great, all aligned.

However, as you noted, the limitation of not being able to search for values is disappointing because my value list is rather large.

Always appreciate the help though :slight_smile:

1 Like

Far from ideal, but you could do something like this:

Download: PWL (Monospace) Option B.kmmacros (8.0 KB)

Macro-Image


Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.

System Information
  • macOS 13.5.1 (22G90)
  • Keyboard Maestro v10.2

How about a roll-yer-own solution?

Prompt With List (HTML).kmmacros (28 KB)

Macro screenshot

4 Likes

I never thought I would have a need to utter the following phrase: that’s a sexy list. :sweat_smile:

1 Like

@noisneil, you’re getting quite adept using the Custom HTML Prompt action. This is very cool; thanks for sharing.

I messed around with the CSS and managed to tighten the lines by adding line-height: 0em; to the li selector.


I might play around more to see if I can create a lightmode and darkmode version and key off the DARKMODE() function.

1 Like

Hi @_jims, thanks for the update to the macro. However I'm trying to avoid adding more text to each line.

1 Like

Hi @noisneil, this is a very sexy list indeed @cdthomer. :rofl:

I noticed that the searching capabilities are different between the standard Prompt with List and your Custom HTML Prompt. Also the wrapping of lines that are too long for the width of the prompt also makes the list look messier.

test1

test2

I think my wish list is too much of an ask here :stuck_out_tongue:
Prompt with List with the usual searching capabilities. Display lines with alignment even when there are tab delimiters. Able to size the prompt as well for long texts.

But thanks again for the help. I'm amazed at how the regular gurus on the forums are always so willing to help out. :slight_smile:

1 Like

All that is doable. I was just working off the example you gave in screenshots.

1 Like

Try this version:

Prompt With List (HTML).kmmacros (26 KB)

Macro screenshot

1 Like

Hi @noisneil, WOW! This is fantastic! I believe other will find this macro very useful as well.

Just a question about the popup that appears when I type in the search field. Could this popup be disable?

I can't thank you enough for this. HappyDance

ChrisQ

1 Like

That’s not part of the macro... that’s some keyboard setting, likely the spelling correction or suggestions.

1 Like

Yes, it is the spell check / suggestion. Just wondering how come I'm not seeing that in the standard Prompt with List search field.

Oh interesting... I wouldn’t know to be honest because I have that turned off on my setup so I never see it anyway.

1 Like

@noisneil you opened a can of worms here... :sweat_smile: out of curiosity, is it possible to have the HTML list allow multiple selections? The syntax is WAY beyond my HTML capabilities so I wouldn’t even know where to begin.

1 Like

This could be refined somewhat, but give it a go...