Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Posts by mcp
Problem How do I indent a list item in Vim the following way? Ideally I want this to happen automatically upon wrap, but will settle for something like ESC TAB doing the trick. Have This is a ...
Have mkdir -p d1/d1_sd1/ d2/d2_sd1/ touch d1/d1_sd1/f1.txt d2/d2_sd1/f1.txt . ├── d1 │ └── d1_sd1 │ └── f1.txt └── d2 └── d2_sd1 └── f1.txt 4 directories, 2 files ...
What is the magit equivalent of git switch branch? I'm particularly interested in the situation where you cloned a repo, and want to checkout a remote branch locally. From the commandline that u...
In markdown-mode, markdown-blockquote-region does the trick! Bound to SPC m x Q or the shortcut , x Q in spacemacs.
Question Is there a command in emacs for "email quoting" an autofilled paragraph? Have Nullam eu ante vel est convallis dignissim. Fusce suscipit, wisi nec facilisis facilisis, est dui fermentu...
Question Is there a way in grafx2 to make the background transparent and trim to content? This could be done during save. My process now when making images for documents is: Make image in gra...
Question How do you clear local variable customizations in buffer? In other words, how do you reset all variables to default? Use case This may be useful in instances where you M-x customize-var...
I will often send tabs to other devices for later viewing and sometimes these tabs get lost between power-ons or swiped away if I don't open them immediately. Is there a place where I can view t...
MWE Using magit: Open log buffer: ll. Open a commit diff: ENT. Go back to log buffer without closing diff: window-other. Question Starting from the MWE above, is there a way to have the d...
MWE translate() square(); Problem I'd like to set the number of spaces per indent in scad-mode to 2. When I press tab on the second line in the MWE, it should result in: translate() ...
MWE line 1 line 2 line 3 line 4 line 5 line 6 line 7 Go to "line 4": /line 4 ENT. Delete into register: dd. Replace everything with register using only ex mode. (Non-ex equivalent: gg...
Background The xclip manual mentions use of targets: -t, -target specify a particular data format using the given target atom. With -o the special target atom name "TARGETS" can be used t...
MWE In Vim: mm. o ESC mm (by accident, meant mn). Question How do I jump to the original mark m set in action 1.? Edit I'm sorry, what I meant was you issue mm when you meant 'm. (It al...
The best I've come up with since, when the line in question is often returned to, is to go mark the line you want up top with mz and the line you are working on with mw. Returning your workspace t...
MWE 5 4 3 2 1 0 Go to the end of the file: G. Question Using spacemacs, how do I put the line with 3 at the top of the screen without moving the cursor? With moving the cursor that wou...
Question I am using Altair to generate plots using python and pandas. What is preventing CutyCapt from capturing the plot in the html output? CutyCapt writes a blank png. MWE I am outputting ...
Have This .png image of a plot: Want To add vertcal lines between the groupings: (0, 1, 2) LINE (3, 4, 5) LINE (6, 7, 8) I want to place the lines exactly in the middle of the grouping boun...
M-x kill-local-variable RET c-basic-offset seems to work, but only temporarily. If I save, and close Emacs, and revisit the file, the changes do not persist. I that in an affected directory, each ...
Problem Wrapping comments in Neovim gets messed up in the presence of parentheses. This happens with both auto wrapping and manual wrapping (gw). MWE This is what happens in a Python file (file...
Problem I would like to trim trailing whitespace on save in all files except .diffs using Neovim. Have vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*" }, command = [[%s/\s...