profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/Mange/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Magnus Bergmark Mange Devbox @devbox-ab Stockholm, Sweden https://mange.dev

jfirebaugh/konacha 1066

Test your Rails application's JavaScript with the mocha test framework and chai assertion library

Mange/emoji-data 28

Machine-readable emoji data built from official Unicode reference files

Mange/dotfiles 21

A collection of *NIX dotfiles for configuration

Mange/DaysLeft 9

Small, simple android countdown widget

Mange/DBLite 3

A lightweight, K.I.S.S. graphical client for SQLite. Works on Mac, Linux and (probably) Windows!

Mange/bitwarden-rofi 2

Wrapper for Bitwarden https://github.com/bitwarden/cli and Rofi

Mange/cloudflare-dyndns-ruby 2

Supersceded by https://github.com/Mange/cloudflare-dyndns-rs

Mange/autorandr 1

Maximize resolution and refresh rate of all connected monitors and order them in an automatic layout.

Mange/cloudflare-dyndns-rs 1

Update a Cloudflare DNS record to the external IP of your network

Mange/git-trivia 1

WIP Git command to calculate fun (and useless) trivia about a given repo

MemberEvent

push eventMange/sentry-cli

Magnus Bergmark

commit sha 619ccf56304f48973bb5be8b199305085293d0cb

Download other URL

view details

push time in 5 hours

push eventMange/sentry-cli

Magnus Bergmark

commit sha 22ab4363b96707ff48488a452d2314be2d292d69

Fix script

view details

Magnus Bergmark

commit sha 7743390f6c5ab48d6f35e105e6474e6d1ed681f4

Remove it

view details

push time in 5 hours

push eventMange/sentry-cli

Magnus Bergmark

commit sha 7baa00d65b52eebc0a1fdcd14d55a1ad23f0dc42

Isolate download logic

view details

push time in 5 hours

push eventMange/sentry-cli

Magnus Bergmark

commit sha 9ea9b8cba533b93d0f0c512fb1d19b0c7f60f0c2

Restore install script

view details

Magnus Bergmark

commit sha c1ac2e3c064cdc29d39766564e9edd97d5dd482d

Log install process using console.log

view details

push time in 5 hours

push eventMange/sentry-cli

Magnus Bergmark

commit sha 0c3714d48d344f67c3768e1c70bf6f524f830a8c

Use empty install script

view details

Magnus Bergmark

commit sha 5d84263632f1f92669af56485e6be169406063b8

Show install script contents before running

view details

push time in 6 hours

fork Mange/sentry-cli

A command line utility to work with Sentry.

https://docs.sentry.io/cli/

fork in 9 hours

pull request commentnvim-treesitter/nvim-treesitter

Support for SQL parser

I'll see if I can allocate some time to this. Thanks!

DerekStride

comment created time in 9 days

issue commentTimUntersberger/neogit

Calling neogit.setup() crashes nvim when started with a filename argument

I'll test out the minimal RC shortly. Hopefully today.

I worked around it by deferring the setup to later.

use {
    "TimUntersberger/neogit",
    requires = {
      {"nvim-lua/plenary.nvim"},
      {"sindrets/diffview.nvim"},
    },
    config = function()
      -- Extremely temporary hack to get nvim to not crash on startup.
      -- Will debug this problem and report upstream. Seems to be related to
      -- plenary loading its luv or async module incorrectly on startup.
      vim.defer_fn(
        function()
          require("neogit").setup {
            -- ...
          }
        end,
        10
      )
    end
  }

I think it might be a load order issue. As soon as everything has finished loading then there is no issue.

To everyone talking about the shell misbehaving, that is completely normal. Vim will enter terminal raw mode in order to draw the UI, with the expectation of restoring it back to normal terminal mode on exit. Since vim hard crashes, it never instructs the terminal to go back to normal mode. Just run the reset command to restore everything back to normal. This happens a lot while developing TUI programs in non-managed languages like C and Rust. 🥲

I am running nightly.

Mange

comment created time in 12 days

issue commentMange/rofi-emoji

Unexpected sorting

Plugins cannot do a lot sadly, as far as I understand the plugin API. It's not very well documented.

I'm open for any suggestions if anyone can find it.

Right now I have to assume that Rofi's sorting algorithms aren't as good as one could hope for very large data sets with a lot of text. It's mainly built to match applications installed on your machine after all.

kpcyrd

comment created time in 12 days

push eventMange/dotfiles

Magnus Bergmark

commit sha 4276febafadbd3fe1982eeb2226dd74e13469423

Neovim: Improve look of vimdiff

view details

Magnus Bergmark

commit sha 80cbaf5d3486bda9a63e747f052b957efc248977

Switch from Firefox to Brave I don't *want* to, but Firefox has not worked well on my PC for months now. Sometimes it freezes up and refuses to unlock for around 10 seconds. It's super annoying. Devtools are also very slow. I'll try Brave for a bit and decide. RIP Firefox, maybe? :'-(

view details

Magnus Bergmark

commit sha 2dc4905f3f0f01d691239b81ed06f722d55c11ab

Neovim: Add firenvim plugin

view details

Magnus Bergmark

commit sha 3b348acebbfae4ff31dd75ccf7c6eeb0030a9386

changed-specs: Filter files that don't exist If you look for all changed files in a whole branch, a file might have been added at one point and then removed again at a later point. You cannot run a non-existent file, so let's filter them out.

view details

Magnus Bergmark

commit sha 920a54d92fc323a9377a357f01b3c8040de630b9

Rofi: Update config for 1.7

view details

Magnus Bergmark

commit sha 92720234791d10af37d0492280c4fe8f8ae24447

Arch: Install lua-language-server

view details

Magnus Bergmark

commit sha 61f260a6d2b672ddc9273e40df53e3fbdfcd2f85

Add banner CLI toy

view details

push time in 15 days

issue commentTimUntersberger/neogit

Calling neogit.setup() crashes nvim when started with a filename argument

Do you see a series of @ and junk inside the command line of vim before you crash? I sometimes encounter this myself when I print something on startup.

I do not. Running without a debugger crashes Neovim without me even seeing a single frame of the TUI. It just had time to enable raw mode so I have to run reset afterwards.

In debugger, everything looks like it should except for the error message in the message line, then it crashes back to the shell again after confirming the error message with <kbd>Enter</kbd>.

Mange

comment created time in 17 days

pull request commentnvim-treesitter/nvim-treesitter

Support for SQL parser

This interests me. Anyway I can help out with this?

DerekStride

comment created time in 17 days

issue openedTimUntersberger/neogit

Calling neogit.setup() crashes nvim when started with a filename argument

I have a hard time debugging this one, so any help would be appreciated. This is basically my symptoms:

  • When I start vim and then open a file, everything is okay.

    nvim
    :e foo.txt
    
  • When I open a file straight from the command line, Neovim crashes

    nvim foo.txt
    zsh: abort (core dumped)
    

This only happens as long as I have neogit enabled and loaded via Packer.nvim.

    use {
      "TimUntersberger/neogit",
      requires = {
        {"nvim-lua/plenary.nvim"},
        {"sindrets/diffview.nvim"},
      },
      config = function()
        require("neogit").setup()
      end
    }

If I comment out the config function, then no crash. And Neogit is of course also not set up.

What can I do to help debug this? I'm not sure how to get a sensible crash dump. I tried

gdb --args nvim foo.txt

Then the editor does not crash right away; I first get a Lua error about it not being able to execute a luv callback: (with the file visible behind it)

Error executing luv callback:
...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:14: The coroutine failed with this message: vim.lua:63: cannot op
en /home/mange/.config/nvim/lua/plenary/async/util.lua: File or directory does not exist

(Translated from my locale)

Then when I press Enter to continue the prompt, I get

Thread 1 "nvim" received signal SIGABRT, Aborted.
0x00007ffff7b69d22 in raise () from /usr/lib/libc.so.6
gdb> backtrace
#0  0x00007ffff7b69d22 in raise () from /usr/lib/libc.so.6
#1  0x00007ffff7b53862 in abort () from /usr/lib/libc.so.6
#2  0x00005555556659d5 in loop_poll_events (loop=<optimized out>, ms=<optimized out>)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/event/loop.c:47
#3  0x000055555573f57c in os_breakcheck ()
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/os/input.c:183
#4  0x0000555555706bdf in line_breakcheck () at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/misc1.c:852
#5  0x000055555577072b in nfa_regmatch (prog=prog@entry=0x555555d2fef0, start=start@entry=0x555555d2ff90, 
    submatch=submatch@entry=0x7fffffff7760, m=m@entry=0x7fffffff7570)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp_nfa.c:6362
#6  0x0000555555770cdd in nfa_regtry (prog=prog@entry=0x555555d2fef0, col=0, tm=tm@entry=0x0, timed_out=timed_out@entry=0x0)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp_nfa.c:6436
#7  0x00005555557711f5 in nfa_regexec_both (line=<optimized out>, startcol=<optimized out>, tm=tm@entry=0x0, 
    timed_out=timed_out@entry=0x0) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp_nfa.c:6610
#8  0x00005555557712fe in nfa_regexec_nl (rmp=<optimized out>, line=<optimized out>, col=<optimized out>, 
    line_lbr=<optimized out>) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp_nfa.c:6781
#9  0x0000555555771790 in vim_regexec_string (rmp=0x7fffffff7bc0, line=0x555555d41b13 "auto_mkdir", col=0, 
    nl=nl@entry=false) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp.c:7343
#10 0x00005555557719ae in vim_regexec (rmp=<optimized out>, line=<optimized out>, col=<optimized out>)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/regexp.c:7390
#11 0x0000555555743f03 in do_path_expand (gap=gap@entry=0x7fffffff8240, 
    path=path@entry=0x555555d8b610 "/home/mange/.local/share/nvim/site/pack/packer/start/*/lua/plenary/vararg.lua", 
    wildoff=wildoff@entry=47, flags=flags@entry=2, didstar=didstar@entry=false)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/path.c:713
#12 0x000055555574407a in do_path_expand (gap=gap@entry=0x7fffffff8240, 
    path=path@entry=0x5555559992e0 "/home/mange/.local/share/nvim/site/pack/*/start/*/lua/plenary/vararg.lua", 
    wildoff=wildoff@entry=0, flags=flags@entry=2, didstar=didstar@entry=false)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/path.c:733
#13 0x0000555555744109 in path_expand (gap=gap@entry=0x7fffffff8240, 
    path=path@entry=0x5555559992e0 "/home/mange/.local/share/nvim/site/pack/*/start/*/lua/plenary/vararg.lua", 
    flags=flags@entry=2) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/path.c:572
#14 0x000055555574509d in gen_expand_wildcards (num_pat=1, pat=0x7fffffff82c8, num_file=0x7fffffff82c4, 
    file=0x7fffffff82d0, flags=2) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/path.c:1290
#15 0x0000555555771f82 in do_in_path (
    path=0x55555592ae80 "/home/mange/.config/nvim,/etc/xdg/nvim,/home/mange/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/share/nvim/runtime,/usr/lib/nvim,/usr/share/nvim/site/after,/usr/local/sh"..., 
    name=name@entry=0x555555d201b0 "pack/*/start/*/lua/plenary/vararg.lua", flags=flags@entry=8, 
    callback=callback@entry=0x5555555ea815 <find_runtime_cb>, cookie=<optimized out>, cookie@entry=0x7fffffff8380)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/runtime.c:126
#16 0x00005555557722f4 in do_in_path_and_pp (path=<optimized out>, name=0x555555959030 "lua/plenary/vararg.lua", flags=8, 
    callback=0x5555555ea815 <find_runtime_cb>, cookie=0x7fffffff8380)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/runtime.c:183
#17 0x0000555555772454 in do_in_runtimepath (name=<optimized out>, flags=<optimized out>, callback=<optimized out>, 
    cookie=<optimized out>) at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/runtime.c:228
#18 0x00005555555f518c in nvim_get_runtime_file (name=..., all=<optimized out>, err=<optimized out>)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/api/vim.c:824
#19 0x00005555555ce6fa in nlua_api_nvim_get_runtime_file (lstate=0x40301308)
    at /home/mange/.cache/paru/clone/neovim-git/src/build/src/nvim/auto/lua_api_c_bindings.generated.c:2588
#20 0x00007ffff7d01936 in ?? () from /usr/lib/libluajit-5.1.so.2
#21 0x00007ffff7d474ea in ?? () from /usr/lib/libluajit-5.1.so.2
#22 0x00007ffff7d01936 in ?? () from /usr/lib/libluajit-5.1.so.2
#23 0x00007ffff7d47590 in ?? () from /usr/lib/libluajit-5.1.so.2
#24 0x00007ffff7d01936 in ?? () from /usr/lib/libluajit-5.1.so.2
#25 0x00007ffff7d47590 in ?? () from /usr/lib/libluajit-5.1.so.2
#26 0x00007ffff7d01936 in ?? () from /usr/lib/libluajit-5.1.so.2
#27 0x00007ffff7d02453 in ?? () from /usr/lib/libluajit-5.1.so.2
#28 0x00007ffff7d47790 in lua_pcall () from /usr/lib/libluajit-5.1.so.2
#29 0x00005555556d9cd6 in nlua_luv_cfpcall (lstate=0x40000378, nargs=2, nresult=0, flags=0)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/lua/executor.c:229
#30 0x00007ffff7f57df2 in ?? () from /usr/lib/libuv.so.1
#31 0x00007ffff7f5967c in ?? () from /usr/lib/libuv.so.1
#32 0x00007ffff7f634bf in ?? () from /usr/lib/libuv.so.1
#33 0x00007ffff7f4f897 in uv_run () from /usr/lib/libuv.so.1
#34 0x0000555555665a07 in loop_poll_events (loop=0x555555901020 <main_loop>, ms=0)
    at /home/mange/.cache/paru/clone/neovim-git/src/neovim-git/src/nvim/event/loop.c:62
#35 0x000055555573f57c in os_breakcheck ()

Honestly, this looks more and more like a Plenary problem to me. Perhaps Neogit is triggering something there that is not working well on my machine.

I think the backtrace shows it crashing inside a regexp parser. It's strange to me how it only happens when loading Neovim with a filename argument.

created time in 17 days

startedNvChad/NvChad

started time in a month

startedtummychow/git-absorb

started time in a month

startedadelarsq/neoline.vim

started time in a month

startedLionC/nest.nvim

started time in a month

push eventMange/mpris-rs

timvisee

commit sha 80b537a68c12854be9f44bdfb20dc3f1bd4fb0a0

Fix mpris-spec submodule URL because it is moved

view details

Magnus Bergmark

commit sha 95ae5bf5d33a780f57328044a700308fe7d1c5c2

Merge pull request #60 from timvisee/master Fix mpris-spec submodule URL because it is moved

view details

push time in 2 months

pull request commentMange/mpris-rs

Fix mpris-spec submodule URL because it is moved

Thanks!

timvisee

comment created time in 2 months

push eventMange/dotfiles

Magnus Bergmark

commit sha dcba46a690a30ae6d351b4371ea07ea94a61d93c

ZSH: Prevent error after booting machine

view details

push time in 2 months

issue closedMange/rofi-emoji

Nix: mode emoji is not found

I did install rofi-emoji with nix package manager in arch. When I run rofi -show emoji -modi emoji it'll tell me "mode emoji is not found".

nix-env -i rofi rofi-emoji

I'm I missing something? Is this reproducible for others?

In addition I noticed it will have the same behavior if I install it in arch (via yay -S rofi-emoji rofi), but maybe I'm mixing it up with nix.

rofi v1.6.1

closed time in 2 months

andys8

issue commentMange/rofi-emoji

Nix: mode emoji is not found

Thanks a lot!

I'll close this issue as its not a problem with the codebase, but feel free to keep using this issue to troubleshoot problems with the Nix package.

andys8

comment created time in 2 months

push eventMange/dotfiles

Magnus Bergmark

commit sha 1ca3d89c4a89c5a9812f54db56fb82436a9fd9e9

Arch: Install Moses lua library (for AwesomeWM)

view details

Magnus Bergmark

commit sha 235d7ef4d3c8e340200210eebca8f4dc9e8f574a

Awesome: Allow clicking on which_key entries This is the beginning of making sure both the mouse and keyboard can be used for everything in my environment.

view details

Magnus Bergmark

commit sha 863c738030c858d130b553af869d839355d0269d

Awesome: Clean up some old temporary naming

view details

Magnus Bergmark

commit sha 4290a73db3a7464aea9e5f4ef77eaf5bd5b47389

Awesome: Add close button to which_keys This improves mouse-only navigation of the menus.

view details

Magnus Bergmark

commit sha 271e94973faf075b16dc3c03a2088f3d08de61fe

Rofi: Improve sort order See https://github.com/Mange/rofi-emoji/issues/26#issuecomment-880666888

view details

push time in 2 months

issue closedMange/rofi-emoji

Unexpected sorting

hey!

I've installed this app to up my emoji game :game_die: and noticed the results are sorted different than I would expect:

rofi-emoji

This should be an exact match, but the emoji I'm looking for is at the end of the list :eyes:.

rofi-emoji2

I'm looking for one of the cat emojis here but it's matching on "Intoxicated" instead :crying_cat_face:.

I would expect rofi-emoji to behave more like github/slack/signal (: followed by two characters invokes the emoji search with sorting that works better for me) but I'm not sure if the sorting is up to rofi-emoji or rofi itself.

Anyway, very useful tool, I've moved the package from the AUR to [community] so you might want to update your install instructions. Also, github doesn't offer subscribing to tags but I've subscribed to "release notifications", if you create a release over here I get a notification in my github inbox and I can update the package faster. :racehorse:

Thanks! :heart:

closed time in 2 months

kpcyrd

issue commentMange/rofi-emoji

Unexpected sorting

I found the culprit by diffing the config:

diff -u <(rofi -no-config -sort -sort-method fzf -help) <(rofi -sort -sort-method fzf -help)
…
 	-combi-modi [string]                    Set the modi to combine in combi mode
 		window,run (Default)
 	-matching [string]                      Set the matching algorithm. (normal, regex, glob, fuzzy)
-		normal (Default)
+		fuzzy (Rasi File)
 	-[no-]tokenize                          Tokenize input string
 		True (Default)
…

If I add -matching normal to my normal commandline, then I get emojis in a sensible order. It would seem that my initial assumption still holds.

I recommend disabling -matching fuzzy and live with having to type consecutive substrings.[1]

[1]: For example, at face will find "Catface", but at fce will not as no word contains "fce".

kpcyrd

comment created time in 2 months

issue commentMange/rofi-emoji

Unexpected sorting

Thank you! :smile:

I've always assumed I could not affect sort ordering and that the problem came from Rofis fzf sorter not being as robust. https://github.com/davatorium/rofi/issues/810

However, when I wanted to showcase this I actually found something out… Check this one out.

rofi -no-config -dmenu -sort -sort-method fzf < /usr/share/rofi-emoji/all_emojis.txt

This loads Rofi with standard options and sets sorting.

In this case, searching for cat returns mostly cat emojis (and a catepillar) at the top. eyes also yield perfect sorting.

This also applies when using this plugin and no default config:

rofi -no-config -modi emoji -show emoji -sort -sort-method fzf

However, if I use my normal config then things break for me:

# Removed -no-config
rofi -modi emoji -show emoji -sort -sort-method fzf

Then I get bad sorting order. There should be some setting in my config files that breaks this and perhaps it is the same for you. I suggest you try this out yourself and see if you can find the culprit.

kpcyrd

comment created time in 2 months

push eventMange/rofi-emoji

Magnus Bergmark

commit sha b8887ce68befa600e3240e365b7fda0fc461a7fb

Update installation instructions

view details

push time in 2 months

issue commentdevth/helm-docker

Newer version of Alpine

Thanks! :heart:

Mange

comment created time in 2 months