[-] uthredii@programming.dev 9 points 1 month ago

Yes, it is easier and safer for someone who doesn't know what they are doing to set up.

[-] uthredii@programming.dev 13 points 10 months ago
[-] uthredii@programming.dev 9 points 2 years ago

Early on uv was only trying to replace pip. This latest update is a big step towards becoming a poetry (and pyenv/pipx) replacement too.

[-] uthredii@programming.dev 9 points 2 years ago* (last edited 2 years ago)

One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.

I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:

  1. Move a line to a new position in the file/another file (takes a couple of seconds)
    1. x then d to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)
    2. navigate the cursor to the new location
    3. p to paste in a new
  2. Navigating around a file:
    1. jumping to a function/class definition by pressing g then d when on a function/class usage.
    2. getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing g then r.
  3. Multi cursor editing - I use this to make edits to multiple places at once. I most recently used this to extract the names of 30 tables that are used in a SQL file. This probably took ~5 seconds and I barely thought about it. To do this I used:
    1. % to select the entire files contents
    2. s to search
    3. typed "FROM "
    4. pressed enter to create cursor at all locations matching the search
    5. v then g then l to select the rest of the line
    6. space+y to copy to the system clipboard.
    7. paste into a document where I needed to list the tables
  4. Using a terminal workspace manager (zellij) with helix and a git tui app (gitui) so that I can easily make code changes, commit, push, ,run tests, move to a new repo and more without leaving the keyboard.

There is actually a helix community on programming.dev: helix@programming.dev

[-] uthredii@programming.dev 10 points 2 years ago* (last edited 2 years ago)
35
[-] uthredii@programming.dev 10 points 2 years ago* (last edited 2 years ago)

Its really hard to day without more information. You should talk to a doctor. Some other things that could be causing this that noone else has mentioned yet(I can't tell if this applies for you or not based on your post):

  • not enough exercise
  • vitamin d/c deficiencies (you can take supplements of vitamin d in winter time)
  • bad gut microbiome. Try to eat a variety of vegtables as well as prebiotics (fibre, oats) and probiotics (yogurt, kefir,, sourdough ect).
  • try to get regular sleep. I know this is your problem but there may be some things you can do like have a set bedtime, no screens for a while before bed.

Remember that many people have had similar problems and overcome them. You will just need to work out what works for you. Good luck.

60
0
44
[-] uthredii@programming.dev 11 points 2 years ago* (last edited 2 years ago)

This actually sounds really promising!

  • They are teaming up with an existing python package manger written in rust.
  • These are the people who make/made ruff, probably the most useful and fast python linter.
  • you basically get pip from a single binary.
  • they plan to have cargo/poetry like functionality in the future.

Edit: here is a blog post from the creator of rye talking about rye and UV: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/

20
-29
[-] uthredii@programming.dev 10 points 2 years ago

Thank you Ategon and all the other admins for the work you are doing to make this place great.

15
1109
14
[-] uthredii@programming.dev 8 points 2 years ago* (last edited 2 years ago)

You could also consider: https://helix-editor.com/

It does more than vim out if the box and it has similar but different key bindings. The key bindings are more intuitive and easier to learn in my opinion.

It is missing a few features still (e.g.plugins) but I have been using helix for a while and it is really fun.

-3
35
To catch a catfish (www.newstatesman.com)
12
[-] uthredii@programming.dev 8 points 2 years ago

Have you set android autofill framework to use bitwarden?

[-] uthredii@programming.dev 9 points 3 years ago

How about posting pictures of Lemmy from motorhead as a pirate?

On topic for piracy and a link to the new home for the community.

view more: ‹ prev next ›

uthredii

0 post score
0 comment score
joined 3 years ago
MODERATOR OF