Githawk: GitHub check lists

Created on 5 Jul 2017  路  11Comments  路  Source: GitHawkApp/GitHawk

  • [ ] unchecked
  • [x] checked
馃啎 feature request

Most helpful comment

Bit shit but with a large font size:

鈽戯笌鈽掆槓

All 11 comments

Current:

img_4535 png

  • [ ] Read Only Visual (See an actual check box, but disabled so can't toggle it's state)
  • [ ] Write Mode (Check box can be tapped to toggle state)
  • [ ] Reordering

I see three stages that need to be done, and only the first can be done for now
Sometimes wish iOS has a checkbox control

I bet other repos would just complicate things, I envision:

  • Regex to find [ ], etc
  • Replace w/ emoji depending on if viewer can edit
  • Add custom attributes like I do for links
  • On tap, detect custom attribute and vend delegate event like this

Oh, didn't think of emoji. Nice one! Is there an emoji for an empty checkbox though? I can't find one.

Ha, I figured there was, but maybe not 馃槥

This would be lame, but maybe 猬滐笍 ?

Otherwise we'll have to do text location finding, could be a huge PITA 馃槵

Bit shit but with a large font size:

鈽戯笌鈽掆槓

What about icon fonts?

https://github.com/dzenbot/Iconic :)

You could use a subclassed NSTextAttachment in the NSAttributedString. With a little bit of code, its possible to allow any arbitrary UIView.

That way you can still keep the string, but create a custom view easily.
(or even use a UISwitch or whatever makes sense)

Out of the box, only image attachments are supported, but if you google a little you'll find simple examples for how to achieve this. No need to import a 3rd party lib.

EDIT: Quick note, your custom attachment would NOT participate in selections, i.e. copied text will not include the attachment. You could obviously get around this by overriding the copy command and putting back the original [x] if you wanted. Currently however the app doesn't support this behaviour anyway.

Closing as this is working, filing a new issue for interactivity

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BasThomas picture BasThomas  路  3Comments

rnystrom picture rnystrom  路  3Comments

viktorgardart picture viktorgardart  路  3Comments

rnystrom picture rnystrom  路  3Comments

rnystrom picture rnystrom  路  3Comments