Skip to content

Commit a7859fd

Browse files
committed
dump
1 parent 6a8f5e2 commit a7859fd

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

lisp/forge-topic.el

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ can be selected from the start."
763763
;;; Insert
764764

765765
(defun forge--insert-topics (type heading topics)
766+
;; (setq magit-section-inhibit-markers t)
767+
;; (setq magit-section-insert-in-reverse t)
768+
;; (setq magit-section-preserve-visibility t)
766769
(when topics
767770
(let ((width (apply #'max (--map (length (oref it slug)) topics))))
768771
(magit-insert-section ((eval type) nil t)
@@ -771,26 +774,28 @@ can be selected from the start."
771774
'magit-section-heading)
772775
(magit--propertize-face (format "(%s)" (length topics))
773776
'magit-section-child-count)))
774-
(magit-insert-section-body
775-
(dolist (topic topics)
776-
(forge--insert-topic topic width))
777-
(insert ?\n)
778-
(magit-make-margin-overlay nil t))))))
777+
;;(magit-insert-section-body
778+
(dolist (topic topics)
779+
(forge--insert-topic topic width))
780+
(insert ?\n)
781+
(magit-make-margin-overlay nil t)))))
779782

780783
(defun forge--insert-topic (topic &optional width)
781-
(magit-insert-section ((eval (oref topic closql-table)) topic t)
784+
(magit-insert-section ((eval (oref topic closql-table)) topic 'hide)
782785
(insert (forge--format-topic-line topic (or width 5)))
786+
;; TODO cache
783787
(forge--insert-topic-marks topic t)
784788
(forge--insert-topic-labels topic t)
785789
(insert "\n")
786-
(magit-log-format-author-margin
787-
(oref topic author)
788-
(format-time-string "%s" (parse-iso8601-time-string (oref topic created)))
789-
t)
790-
(when (and (slot-exists-p topic 'merged)
791-
(not (oref topic merged)))
792-
(magit-insert-heading)
793-
(forge--insert-pullreq-commits topic))))
790+
;; (magit-log-format-author-margin
791+
;; (oref topic author)
792+
;; (format-time-string "%s" (parse-iso8601-time-string (oref topic created)))
793+
;; t)
794+
;; (when (and (slot-exists-p topic 'merged)
795+
;; (not (oref topic merged)))
796+
;; (magit-insert-heading)
797+
;; (forge--insert-pullreq-commits topic))
798+
))
794799

795800
(defun forge--insert-topic-labels (topic &optional separate)
796801
(and-let* ((labels (closql--iref topic 'labels)))

0 commit comments

Comments
 (0)