profile
viewpoint

emacsorphanage/evil-anzu 40

anzu for Evil

fbergroth/emacs-rustfmt 16

Format rust code in emacs using rustfmt

fbergroth/aiohttp-client-cache 0

An async persistent cache for aiohttp requests

fbergroth/anaconda-mode 0

Code navigation, documentation lookup and completion for Python.

fbergroth/auto-virtualenv 0

Automatically activate python virtualenv on Emacs

fbergroth/awesome-themes 0

collection of themes for awesome-wm

fbergroth/bspwm 0

A tiling window manager based on binary space partitioning

PR opened abrochard/kubel

Use age comparator in some more columns

Columns from jobs and cronjobs ;)

+3 -1

0 comment

1 changed file

pr created time in 11 days

create barnchfbergroth/kubel

branch : more-columns

created branch time in 11 days

PR opened abrochard/kubel

Fix position calculations in kubel--parse-body

Previously it would find the position of "AGE" in "STOR[AGE]CLASS" in pvcs. Persistent volumes was broken due to "CLAIM" being found in "RECLAIM POLICY".

+4 -4

0 comment

1 changed file

pr created time in 12 days

push eventfbergroth/kubel

Fredrik Bergroth

commit sha d6363248cfdddb33623541c8d9c78fa039825d73

Fix position calculations in kubel--parse-body Previously it would find the position of "AGE" in "STOR[AGE]CLASS" in pvcs. Persistent volumes was broken due to "CLAIM" being found in "RECLAIM POLICY".

view details

push time in 12 days

push eventfbergroth/kubel

Fredrik Bergroth

commit sha dc8e943dc40c85c4caadf23dfb3aadef457f74f3

Fix position calculations in kubel--parse-body Previously it would find the position of "AGE" in "STORAGECLASS" in persistentvolumeclaims, and persistentvolumes was broken due to "CLAIM" being found in "RECLAIM POLICY".

view details

push time in 12 days

create barnchfbergroth/kubel

branch : fix-positions

created branch time in 12 days

PR opened abrochard/kubel

Add sort predicate to age column

Hi, I noticed the age column did not properly sort. This PR adds a predicate function to that column.

image

+29 -10

0 comment

1 changed file

pr created time in 12 days

push eventfbergroth/kubel

Fredrik Bergroth

commit sha 01976022cbc685791147ff4065a0eb945ae8b02c

Add sort predicate to age column

view details

Fredrik Bergroth

commit sha 2f7bcb641ce15e5c8d8f5e68afc852aaf38922c7

Remove unused kubel--list-format

view details

push time in 12 days

create barnchfbergroth/kubel

branch : sort-age

created branch time in 12 days

fork fbergroth/kubel

Emacs extension for controlling Kubernetes with limited permissions

fork in 12 days

PR closed kubernetes-el/kubernetes-el

Jobs: Properly lookup pod for job

Hi, I'm a new user. I noticed that jobs view was crashing and looked into it. My fix does two things:

  • job-name was fetched from metadata/labels/job-name of the job, instead of than just metadata/name. This later crashed in (string-prefix-p nil job-name).
  • We can just compare the label job-name of the pod, rather than checking if job-name is a prefix of pod-name.

Also, we probably want seq-filter instead of seq-find, since a job can have multiple pods?

Cheers

+6 -6

4 comments

3 changed files

fbergroth

pr closed time in 17 days

PR closed kubernetes-el/kubernetes-el

Disable timers if kubernetes-{poll,redraw}-frequency are nil

I think this looks better than some arbitrary high value

+6 -4

4 comments

2 changed files

fbergroth

pr closed time in 17 days

pull request commentkubernetes-el/kubernetes-el

Disable timers if kubernetes-{poll,redraw}-frequency are nil

@noorul I'm using kubel instead, since this library was crashing and my fix in #213 went stale. Feel free to merge any commits.

fbergroth

comment created time in 17 days

issue commentoantolin/embark

smerge integration

Ah, right, I updated the previous comment.

fbergroth

comment created time in 18 days

issue commentoantolin/embark

smerge integration

Maybe the target finder could trigger only in smerge mode and only on a >>>>>>, ====== or <<<<<< line. It could report the bounds of the entire diff hunk to highlight it. The next and prev actions could be repeatable.

Right, that was what I had in mind. I hacked something together in case anyone wants to try it.

(defun embark-target-smerge-at-point ()
  (when (bound-and-true-p smerge-mode)
    (when-let (ov (cl-find-if (lambda (ov) (eq (overlay-get ov 'smerge) 'conflict))
                              (overlays-at (point))))
      `(smerge-diff "conflict" ,(overlay-start ov) . ,(overlay-end ov)))))

(embark-define-keymap embark-smerge-map
  "Keymap for Embark smerge actions."
  ("RET" smerge-keep-current)
  ("u" smerge-keep-upper)
  ("l" smerge-keep-lower)
  ("n" smerge-next)
  ("p" smerge-prev))

(add-to-list 'embark-keymap-alist '(smerge-diff . embark-smerge-map))
(add-to-list 'embark-target-finders 'embark-target-smerge-at-point)
(add-to-list 'embark-repeat-actions 'smerge-next)
(add-to-list 'embark-repeat-actions 'smerge-prev)
fbergroth

comment created time in 18 days

issue commentoantolin/embark

smerge integration

You are right, I didn't really think this through.

I was thinking it would be nice to have smerge-keep-current bound to embark-dwim (which I bind to M-.), and having the rest of the commands a bit more accessible via embark rather than via their default keybindings.

It would be a bit more ergonomic for me, but probably it doesn't make much sense adding it to embark, so I'll close this.

fbergroth

comment created time in 18 days

issue closedoantolin/embark

smerge integration

How about making smerge diffs be an embark target?

The keymap could perhaps be:

(embark-define-keymap embark-smerge-map
  "Keymap for Embark smerge actions."
  ("RET" smerge-keep-current)
  ("u" smerge-keep-upper)
  ("l" smerge-keep-lower)
  ("n" smerge-next)
  ("p" smerge-prev))

closed time in 18 days

fbergroth

issue openedoantolin/embark

smerge integration

How about making smerge diffs be an embark target?

The keymap could perhaps be:

(embark-define-keymap embark-smerge-map
  "Keymap for Embark smerge actions."
  ("RET" smerge-keep-current)
  ("u" smerge-keep-upper)
  ("l" smerge-keep-lower)
  ("n" smerge-next)
  ("p" smerge-prev))

created time in 18 days

Pull request review commentNixOS/nixpkgs

copier: init at unstable-2021-11-10

 in {    mkdocs-material-extensions = callPackage ../development/python-modules/mkdocs-material-extensions { }; +  mkdocs-mermaid2-plugin = callPackage ../development/python-modules/mkdocs2-mermaid2-plugin { };

mkdocs2 in mkdocs2-mermaid2-plugin looks like a typo

jonringer

comment created time in 20 days

PullRequestReviewEvent

issue closedFatal1ty/mashumaro

Serializing any type via cattrs-like structure/unstructure

Hi, thanks for a great library!

A lot of field types are supported, is there a reason they can't be serialized on their own? I would be nice to be able to do this:

mashumaro.structure({"test": 4}, collections.Counter[str])
mashumaro.unstructure(my_list_of_named_tuple_instances)

closed time in a month

fbergroth

issue commentFatal1ty/mashumaro

Serializing any type via cattrs-like structure/unstructure

Honestly, I don't like this idea

I don't see any drawbacks of this lib being a more general serialization library rather than just for dataclasses. I don't know what you don't like, but I'll close the issue then.

fbergroth

comment created time in a month

issue openedFatal1ty/mashumaro

Serializing any type via cattrs-like structure/unstructure

Hi, thanks for a great library!

A lot of field types are supported, is there a reason they can't be serialized on their own? I would be nice to be able to do this:

mashumaro.structure({"test": 4}, collections.Counter[str])
mashumaro.unstructure(my_list_of_named_tuple_instances)

created time in a month

PR opened kubernetes-el/kubernetes-el

Disable timers if kubernetes-{poll,redraw}-frequency are nil

I think this looks better than some arbitrary high value

+6 -4

0 comment

2 changed files

pr created time in 3 months

push eventfbergroth/kubernetes-el

Fredrik Bergroth

commit sha 2f71991a43f6eee72d1c0a034b56bea8d43759ff

Disable timers if kubernetes-{poll,redraw}-frequency are nil

view details

push time in 3 months

create barnchfbergroth/kubernetes-el

branch : disable-timers

created branch time in 3 months

push eventfbergroth/kubernetes-el

Fredrik Bergroth

commit sha 153b592f48291ffe6d640c87f52388caa23290df

Adjust ingress test data

view details

push time in 3 months

Pull request review commentkubernetes-el/kubernetes-el

Jobs: Properly lookup pod for job

         "labels": {           "name": "example-pod-v6",           "controller-uid": "502b3b8b-cccf-4ac0-bbe2-642d13bdb7a9",-          "job-name": "example-svc-v6"+          "job-name": "example-job-1"

It was the only pod with a job-name label. Is the data hand-crafted? The example is for example-job-1, and I expected the matching pod to have a matching job-name.

But I pushed a different version which instead adjusts the pod.

fbergroth

comment created time in 3 months

PullRequestReviewEvent

push eventfbergroth/kubernetes-el

Fredrik Bergroth

commit sha 87756632e6be84a1b7522f54f62c353c783eae9c

Adjust test case for job

view details

push time in 3 months

more