I hope Nokia
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.
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:
- Move a line to a new position in the file/another file (takes a couple of seconds)
xthendto select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)- navigate the cursor to the new location
pto paste in a new
- Navigating around a file:
- jumping to a function/class definition by pressing
gthendwhen on a function/class usage. - getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing
gthenr.
- jumping to a function/class definition by pressing
- 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:
%to select the entire files contentssto search- typed "FROM "
- pressed enter to create cursor at all locations matching the search
vthengthenlto select the rest of the linespace+yto copy to the system clipboard.- paste into a document where I needed to list the tables
- 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
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.
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/
Thank you Ategon and all the other admins for the work you are doing to make this place great.
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.
Have you set android autofill framework to use bitwarden?
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.
Yes, it is easier and safer for someone who doesn't know what they are doing to set up.