~ihabunek

Zagreb, Croatia

~ihabunek/toot-discuss

Last active 2 days ago

~ihabunek/triglav-discuss

Last active 6 months ago
View more

Recent activity

Re: Feature Ideas 2 days ago

From Ivan Habunek to ~ihabunek/toot-discuss

On Tue, Jul 27, 2021 at 06:24:49PM -0700, alex wennerberg wrote:
> I'm trying to replace my usage of the mastodon web interface with toot,
> and there's a few features I think I'd need -- let me know what you
> think. I can get started on these if you think they make sense.
> 
> For notifications, add a parameter to only filter mentions
> 
> For notifications, timelines, and a few other commands, add a parameter
> for one-line output, so the output can be easily grep'd
> 
> For the TUI, add a tab for notifications/mentions
> 
> Let me know what you think!

Re: [PATCH] Make case consistent for all commands 2 days ago

From Ivan Habunek to ~ihabunek/toot-discuss

On Tue, Jul 27, 2021 at 07:01:27PM -0700, alex wennerberg wrote:
> Note that I could also see an argument for all lowercase. Let me know
> what you think

I would prefer starting with lower case, that seems to be standard for
linux command line utils. And --help which is added automatically by
argsparse is lower cased so we're still not fully consistent even with
this patch.

-- Ivan

[PATCH todo.sr.ht 1/1] Implement ticket ordering 9 months ago

From Ivan Habunek to ~sircmpwn/sr.ht-dev

By default order tickets by last updated, if not otherwise defined.
---
 tests/test_search.py           | 115 ++++++++++++++++++++++-----------
 todosrht/blueprints/tracker.py |   3 +-
 todosrht/search.py             |  32 ++++++++-
 3 files changed, 109 insertions(+), 41 deletions(-)

diff --git a/tests/test_search.py b/tests/test_search.py
index 5f87887..624abf5 100644
--- a/tests/test_search.py
+++ b/tests/test_search.py
@@ -1,5 +1,6 @@
import pytest

[message trimmed]

[PATCH todo.sr.ht 0/1] Implement ticket ordering 9 months ago

From Ivan Habunek to ~sircmpwn/sr.ht-dev

This adds ordering by id and updated, using ! for reversing, similar to
negation of terms. E.g. sort:updated, !sort:updated.

I wanted to add ordering by number of comments, but it required changing
the base query to include the comment count, which was a pain to get to
work correctly using sqlalchemy so leaving it for later.

Ivan Habunek (1):
  Implement ticket ordering

 tests/test_search.py           | 115 ++++++++++++++++++++++-----------
 todosrht/blueprints/tracker.py |   3 +-
 todosrht/search.py             |  32 ++++++++-
 3 files changed, 109 insertions(+), 41 deletions(-)

Re: [PATCH] Favourites and reblogs also use this id and it's sometimes strings. 10 months ago

From Ivan Habunek to ~ihabunek/toot-discuss

Thanks, applied. Sorry for the longish wait.

Ivan

Re: [PATCH] Reply to non-int, and also longer posts, Pleroma style 10 months ago

From Ivan Habunek to ~ihabunek/toot-discuss

Thanks, applied.

-- Ivan

Re: todo.sr.ht search: reversing order, other sort orders 10 months ago

From Ivan Habunek to ~sircmpwn/sr.ht-discuss

On Fri, 28 Aug 2020, at 21:23, Denis Laxalde wrote:
> It might also be nice to support more than one parameter. E.g.
> "sort=-creation_date,title", meaning sort by creation_date reversed,
> then title.

It might be simpler to specify sort multiple times, e.g. 
`sort=-creation_date sort=title`, or whatever syntax is agreed upon.

I actually have a WIP patch for sorting, could finish it up.

Ivan

Re: [PATCH core.sr.hr] Implement markdown checkbox lists with icons 1 year, 2 months ago

From Ivan Habunek to ~sircmpwn/sr.ht-dev

On Sun, May 24, 2020 at 07:26:18AM +0000, Simon Ser wrote:
> IMHO rendering as checkboxes is already a step forward. I don't mind
> having to edit the Markdown source to update the checkbox status.

I agree with Simon. Having read-only checkboxes is better than not
having them at all.

-- Ivan

Re: [PATCH core.sr.hr 0/1] Markdown checklists using inputs 1 year, 2 months ago

From Ivan Habunek to ~sircmpwn/sr.ht-dev

On Sun, May 24, 2020 at 07:25:01AM +0000, Simon Ser wrote:
> There's a "readonly" attribute that makes it look like regular
> checkboxes while being immutable.

The readonly attribute does not apply to checkboxes unfortunately.

MDN says:
"Note: Only text controls can be made read-only, since for other
controls (such as checkboxes and buttons) there is no useful distinction
between being read-only and being disabled, so the readonly attribute
does not apply."

I would argue that visuals are a useful distinction, but hey.