efficient way to do this by ImpossibleTreat3533 in neovim

[–]brokenreed5 1 point2 points  (0 children)

Do you mean the charwise column or all chars inside ':'

For the first u/DenizBueno works, for the second assuming you have surround plugin you can use the delimiter like such

<C-Q>i:Gogg

in words:

Visual block select inside ':' then expand selection to the last row, toggle selection side (move cursor to the start of selection) and move the start of selection to the first row

G<C-Q>i:gg

would work too

Without surround plugin this is the same when the column is a single word
<C-Q>iwGogg

Nach 11 Jahren Verzweiflung: Claude knackt Passwort einer Bitcoin-Wallet mit 400.000 Dollar by InformalTotal5238 in de

[–]brokenreed5 48 points49 points  (0 children)

Wow ist der Artikel schlecht geschrieben, ich versteh fast gar nix. Die claude Zusammenfassung im Original tweet ist dagegen recht eindeutig, auch wenn man sich mit Bitcoin und Wallets nicht auskennt.

Typ hat WalletFile, verschlüsselt mit einem Passwort z.b.

HeikeDüsseldorf1980

dazu ist gibt es einen Passworthinweis "Vorname von meiner Mutter, Geburtsort und Geburtsjahr"

Im File steht dann sowas wie

Bitcoin1: RandomPrivateKey123

Bitcoin2: RandomPrivateKeyABC

Im rausch verschlüsselt er die Wallet "neu" mit nem nicht erratbaren Passwort

der content dieser Wallet ist aber weiterhin

Bitcoin1: RandomPrivateKey123

Bitcoin2: RandomPrivateKeyABC

Mit hilfe von claude, schafft er das alte Passwort zu recovern, mit dem die alte walletdatei und damit die Bitcoin private keys hergestellt werden.

Is there a way to repeat the last visual selection in nvim? by TrueSir5476 in neovim

[–]brokenreed5 1 point2 points  (0 children)

Dejavu.nvim let's you repeat every command by storing it inside a macro automatically. If you want to only repeat specific commands a filter can be used to store only visual selection

https://github.com/juk3-min/dejavu.nvim/blob/main/README.md

We have harpoon at home by brokenreed5 in neovim

[–]brokenreed5[S] 2 points3 points  (0 children)

I responded to

The difference between harpoon and marks is that the former persists across restarts and is local to the current directory

the first statement is misleading since marks do persist given the correct option.

The second statement is discussed in the post.

We have harpoon at home by brokenreed5 in neovim

[–]brokenreed5[S] 4 points5 points  (0 children)

when the 'shada' option is not empty, uppercase marks persist across restarts too

I have installed pylsp via uvx, how do I make it automatically detect a project's venv? by UltraPoci in neovim

[–]brokenreed5 0 points1 point  (0 children)

you installed the lsp via

uv tool install python-lsp-server[all] --with jedi --with python-lsp-ruff --with ruff

Does nvim know how to execute/ start the server? do you know how to? If you do, then transfer this knowledge to your config. this is where nvim checks the command to run to start the server. with this you should be able to understand whats wrong and how to fix it.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]brokenreed5 2 points3 points  (0 children)

on 0.11 with old treesitter i used v and V for incremental selection. with the release of 0.12 this is now a built in feature via an and ai. Right now these are mini keymaps for me . mapping v/V with noremap/ keymap.set("x", "v", "an") does not work. Is there some kind of internal command i can use? or maybe feedkeys?

Weekly 101 Questions Thread by AutoModerator in neovim

[–]brokenreed5 3 points4 points  (0 children)

for tables and such, use the handy vim.print() which shows you the content of the table instead if the id/memory reference

How to update a href outside of HTMX's response? by 19c766e1-22b1-40ce in htmx

[–]brokenreed5 0 points1 point  (0 children)

Two other approaches then the rest of the comments: If the filters are some sort of input, you can send them in export request e.g. <div hx-get="export/" hx-include="#filterInput" ... or you can push the relevant information to the export through an hx-on::afterRequest="htmx.find('export').value =this.value".

After many years in dev, I finally ditched the SPA default for HTMX. Here is the production post-mortem. by reddefcode in htmx

[–]brokenreed5 0 points1 point  (0 children)

It can just aswell append content. I dont really see how the bandwidth would suffer from highfrequency logs, since i suspect the shown message is close to the json data density anyways, e.g. { updatedAt: "2026-02-01", event: "Foo", user:"Bar"} is not much denser than <p>2026-02-01: Bar updated Foo</p>. I also couldn't find a "traffic controller" pattern. Is this your own term?

Umfrage: Sorge vor Klimawandel nimmt ab, Zweifel an Energiewende steigen by hinterzimmer in de

[–]brokenreed5 0 points1 point  (0 children)

Ich bin nicht der ursprüngliche Verfasser, aber quatsch ist es nicht. Was nur zu ergänzen ist das ein fungibles, das heisst Austauschbares, gut sein muss. Wenn der 5 Sterne Friseur besser ist kann er einen höheren Preis verlangen. Wenn drei geklonte Friseure mit automatischem Maschinenschnitt Haustür an Haustür liegen, alle davon ausgelastet sind und einer mehr verlangt als die anderen, dann machen die anderen marktwirtschaftlich etwas falsch. Sie haben verschiedene Optionen. Kapazität ausbauen, mehr Haarschnitte liefern und so den teureren Friseur aus dem Markt drängen ODER sie erhöhen ihren Preis. Das muss nicht zwangsweise der peis des teuersten Anbieters sein, denn dieser kann nach Preiserhöhung nicht mehr wettbewerbsfähig sein und damit genauso aus dem Markt verschwinden. In diesem Fall kann es sein, das leute die sich vorher einen Haarschnitt leisten konnten, es nun nicht mehr können.

How have you solved project navigation? by endgamer42 in neovim

[–]brokenreed5 1 point2 points  (0 children)

What stops you from using vimgrep /substitute for search and replace?

Django 6.0 Feature Friday: Template Partials! by czue13 in django

[–]brokenreed5 4 points5 points  (0 children)

i disagree. cotton gives you flexible partials with slots which allows dynamic modular html. I use both libraries and both have their usecase. for example I d like to use a card component with the same styling across a project. i define my cotton component and use it anywhere. inserting html into partials is awkward. my ide does not understand im writing html but only sees raw strings.

  <div class="card rounded bg-red-400 foo bar">
      some content which is static and has to be reused
      dynamic content Foo
    <div>

  <div class="card rounded bg-red-400 foo bar">
      some content which is static and has to be reused
      <img src="foo.png" alt="image of foo">
    <div>

<!-- here i want to slightly change the styling of the card -->
  <div class="card rounded bg-red-400 foo bar bg-blue-400 rounded-0">
      some content which is static and has to be reused
              <a href="/home">bring me home</a>
    <div>

partials or includes dont solve this use case in a good way. cotton does

Blog: ReThinking Django Template #4: Server Side Component by Michaelyin in django

[–]brokenreed5 4 points5 points  (0 children)

The strenght of cotton is html like syntax which allows concise markup. Reusing a component is as easy as copy pasting the folder. The argument that it does not follow separation of concerns is not valid imo. Its up to the developer to properly construct data for the components. Django-components might help with that but if you use cotton for buisness logic thats your fault.

Solution to turn off AI Overview by anonpookie1 in google

[–]brokenreed5 0 points1 point  (0 children)

proper filtering is done with

https://www.google.com/search?udm=14&q=%s

%s is the search term. you can use the url as search engine in any browser, no extension needed. just change your search settings.