Activity for mcp
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #287862 |
Post edited: Add comma |
— | almost 2 years ago |
Edit | Post #287822 |
Post edited: Add headers |
— | almost 2 years ago |
Edit | Post #287860 |
Post edited: Add headers |
— | almost 2 years ago |
Edit | Post #287860 |
Post edited: Remove typo |
— | almost 2 years ago |
Edit | Post #287862 | Initial revision | — | almost 2 years ago |
Question | — |
How to decrease image size from commandline Problem I'd like to be able to decrease images, particularly jpg and png's, either to a percentage of the original file, or a specified size in bytes. MWE ```sh decrease --size=900KB -o imagesmall.png image.png decrease --size=90% -o imagesmall.png image.png ``` Notes It can be two sepa... (more) |
— | almost 2 years ago |
Edit | Post #287860 |
Post edited: Expand on example |
— | almost 2 years ago |
Edit | Post #287860 |
Post edited: Add example |
— | almost 2 years ago |
Edit | Post #287860 | Initial revision | — | almost 2 years ago |
Question | — |
Treat underscores as word boundaries in terminal using vim mode Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE `w` on `thisword` should place the cursor on the underscore. A second `w` should place the cursor on the 'w' of "word". (more) |
— | almost 2 years ago |
Comment | Post #287822 |
The length of the solution makes me think there is a better way. Especially when considering how short the bash solution is that you linked in the other question:
```sh
# See https://stackoverflow.com/a/48449104.
set editing-mode vi
set show-mode-in-prompt on
set vi-cmd-mode-string "\1\e[2 q\2"
... (more) |
— | almost 2 years ago |
Comment | Post #287835 |
Outstanding! Thanks! (more) |
— | almost 2 years ago |
Edit | Post #287822 |
Post edited: Specify cursor shapes |
— | almost 2 years ago |
Edit | Post #287821 |
Post edited: Add vim tag |
— | almost 2 years ago |
Edit | Post #287822 | Initial revision | — | almost 2 years ago |
Question | — |
Simplest way to change cursor to indicate vim mode Question What is the simplest way to change the cursor to indicate vim mode when using zsh? Notes I want it to show as a vertical line in insert mode and a block in normal mode. This is the current code I am using: ```sh change cursor shape for different vi modes cursormode() { # See ... (more) |
— | almost 2 years ago |
Edit | Post #287821 | Initial revision | — | almost 2 years ago |
Question | — |
Vim key bindings not working in terminal python interpreter MWE To reproduce: 1. Add `bindkey -v` to your `/.zshrc`. 2. Invoke python interpreter: `python`. 3. Type something into the prompt without hitting `ENTER`: `this = "this" + "that"`. 4. Press `ESC` and try any `vim` bindings successively: `bb`. Problem The behavior is not consistent. Some... (more) |
— | almost 2 years ago |
Comment | Post #287735 |
Be sure to [edit the styles, not the text](https://github.com/jgm/pandoc/issues/5974#issuecomment-563100924). (more) |
— | almost 2 years ago |
Comment | Post #287735 |
[The template documentation](https://pandoc.org/MANUAL.html#templates)
led me to [the answer](https://pandoc.org/MANUAL.html#option--reference-doc). (more) |
— | almost 2 years ago |
Comment | Post #287735 |
Okay, thanks for the lead! (more) |
— | almost 2 years ago |
Suggested Edit | Post #287735 |
Suggested edit: Make answer self-contained and give you opportunity to correct html command (more) |
declined | almost 2 years ago |
Comment | Post #287735 |
[Related](https://heather.cs.ucdavis.edu/~matloff/latex.html#convert). Most notably `latex2html` and `latex2rtf`. (more) |
— | almost 2 years ago |
Comment | Post #287735 |
This is truly incredible! You got to the root of my problem!
My only remaining issue is that the styling doesn't really carry over, for example, my html section headers are red and a nice font, but with `pandoc -s doc.html -o doc.docx` they look like yours, blue and bold. (more) |
— | almost 2 years ago |
Comment | Post #287711 |
This is a nice thought. I used `asciidoctor-pdf`. I know I can output to `.html` natively with `asciidoctor`.
The other tool I encounter this with is `latex`. (more) |
— | almost 2 years ago |
Comment | Post #287711 |
Thank you for this. This is not ideal either, because I need to send the docx to native word users. They will be taken aback by this but have a surprisingly high tolerance for formatting issues. It's okay for the formatting to get messed up when editing, but I don't think they will accept being confi... (more) |
— | almost 2 years ago |
Edit | Post #287705 | Initial revision | — | almost 2 years ago |
Question | — |
How to convert PDF to docx How can I convert PDF to docx using the terminal or a Linux app? The output docx must be formatted with editable text. Some alternative solutions I've seen online using `soffice` and `abiword` output a docx with images of each paragraph. (more) |
— | almost 2 years ago |
Comment | Post #287418 |
That's actually an interesting idea, and probably the best solution. I will give it more thought.
I guess I could write a base file, and then a script to append to the base, based on the situation. (more) |
— | almost 2 years ago |
Comment | Post #287418 |
This is an important comment. (more) |
— | almost 2 years ago |
Comment | Post #287418 |
I understand that, but I don't want to have separate `.xinitrc` files or
change them based on use case. I want to keep one basic `.xinitrc` and
then pass additional commands to my X session based on the situation. (more) |
— | about 2 years ago |
Comment | Post #286930 |
This is a good question. I'm not sure. (more) |
— | about 2 years ago |
Edit | Post #287409 |
Post edited: Add space to Xsession |
— | about 2 years ago |
Edit | Post #287409 |
Post edited: Add space to Xsession |
— | about 2 years ago |
Edit | Post #287409 |
Post edited: Close code block |
— | about 2 years ago |
Edit | Post #287409 | Initial revision | — | about 2 years ago |
Question | — |
How to append commands to startx from console MWE ```sh startx && xrandr-invert-colors ``` Problem It seems that anything after `startx` does not get issued in the resulting X session. I'd like to make a bash function that sets up my monitors based on which office I'm working out of. Assuming the `-display` commands are `xrandr` commands... (more) |
— | about 2 years ago |
Comment | Post #286930 |
Good thought. Tried it specifically setting mode and it did not work:
```sh
xrandr --output HDMI-2 --mode 1920x1080 --rotate left --dpi 92 --right-of eDP-1
``` (more) |
— | about 2 years ago |
Comment | Post #286930 |
Yes you are right, but despite this, the concept of software "dpi" exists through `Xft.dpi` and `xrandr --dpi`.
My main goal is UI scaling. (more) |
— | about 2 years ago |
Comment | Post #287278 |
I'm pretty sure this was my original setup, prior to trying FAT. Will give it another shot and report back. It'll be a couple weeks before I have access to a Windows machine again. (more) |
— | about 2 years ago |
Comment | Post #287278 |
I will see if NTFS is recognized by the device in question. First, when partitioning with `fdisk` or `gdisk`, what partition type should I assign for NTFS? (more) |
— | about 2 years ago |
Edit | Post #287260 | Initial revision | — | about 2 years ago |
Question | — |
What partition type should be used for cross-platform FAT partitions? Question What partition type should I use for FAT partitions such that Linux and Windows systems both recognize the drive? Notes I am partitioning the drive with `fdisk` and making the filesystem with `mkfs.fat /dev/sdx`. Linux seems to recognize anything I throw at it. Microsoft is the problem.... (more) |
— | about 2 years ago |
Edit | Post #286930 | Initial revision | — | about 2 years ago |
Question | — |
How to reduce DPI of external monitor using xrandr Have I have the DPI on my laptop set in `.Xresources` with `Xft.dpi: 192`. I am outputting to the external monitor with: ```sh xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 ``` Want I want to decrease the DPI of the external monitor. Because the screen is bigger, everything g... (more) |
— | about 2 years ago |
Edit | Post #286921 | Initial revision | — | about 2 years ago |
Answer | — |
A: xrandr rotate not filling external monitor This was fixed after restart. I believe this was caused by updating without restarting. It's possible it also had to do with disconnecting the HDMI cable. (more) |
— | about 2 years ago |
Edit | Post #286918 |
Post edited: Add headers |
— | about 2 years ago |
Edit | Post #286918 | Initial revision | — | about 2 years ago |
Question | — |
xrandr rotate not filling external monitor Problem I can rotate output, but it does not fill screen. Instead it rotates in place so that the right side of the screen goes off the monitor. ```sh xrandr --output HDMI-2 --auto --mode 1920x1080 --rotate left --same-as eDP-1 ``` Tried I've tried `1080x1920` but it errors as not a mode. ... (more) |
— | about 2 years ago |
- ← Previous
- 1
- 2
- 3
- Next →