Activity for mcp
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #287821 | Initial revision | — | about 1 year 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) |
— | about 1 year ago |
Comment | Post #287735 |
Be sure to [edit the styles, not the text](https://github.com/jgm/pandoc/issues/5974#issuecomment-563100924). (more) |
— | over 1 year 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) |
— | over 1 year ago |
Comment | Post #287735 |
Okay, thanks for the lead! (more) |
— | over 1 year ago |
Suggested Edit | Post #287735 |
Suggested edit: Make answer self-contained and give you opportunity to correct html command (more) |
declined | over 1 year ago |
Comment | Post #287735 |
[Related](https://heather.cs.ucdavis.edu/~matloff/latex.html#convert). Most notably `latex2html` and `latex2rtf`. (more) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year ago |
Edit | Post #287705 | Initial revision | — | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year ago |
Comment | Post #287418 |
This is an important comment. (more) |
— | over 1 year 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) |
— | over 1 year ago |
Comment | Post #286930 |
This is a good question. I'm not sure. (more) |
— | over 1 year ago |
Edit | Post #287409 |
Post edited: Add space to Xsession |
— | over 1 year ago |
Edit | Post #287409 |
Post edited: Add space to Xsession |
— | over 1 year ago |
Edit | Post #287409 |
Post edited: Close code block |
— | over 1 year ago |
Edit | Post #287409 | Initial revision | — | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year 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) |
— | over 1 year ago |
Edit | Post #287260 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #286930 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #286921 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #286918 |
Post edited: Add headers |
— | over 1 year ago |
Edit | Post #286918 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #286844 |
Post edited: Fix zsh docs link |
— | over 1 year ago |
Edit | Post #286844 | Initial revision | — | over 1 year ago |
Question | — |
Running `bashcompinit` in zsh to enable use of bash completion specifications gives "command not found" I'd like to use the answers in this post while using zsh: > ```sh > compgen -c # will list all the commands you could run. > compgen -a # will list all the aliases you could run. > compgen -b # will list all the built-ins you could run. > compgen -k # will list all the keywords you could run.... (more) |
— | over 1 year ago |
Comment | Post #286772 |
Thank you! Marked! (more) |
— | almost 2 years ago |
Comment | Post #286725 |
Wow, I was hoping for a simple variable to toggle or change in my `.zshrc`. Not very satisfied with that solution. (more) |
— | almost 2 years ago |
Comment | Post #286772 |
Wow this is amazing insight I had never considered, thank you. Do you mind adding the first statement to the answer so I can mark it? (more) |
— | almost 2 years ago |
Comment | Post #286778 |
If you found an answer in `man less` please document it here. (more) |
— | almost 2 years ago |
Edit | Post #286778 |
Post edited: Add emacs |
— | almost 2 years ago |
Edit | Post #286778 | Initial revision | — | almost 2 years ago |
Question | — |
How to edit file from less MWE ```sh touch d less d jump to editing d without leaving less ``` Question Is there a way to edit a file from viewing it in `less`? Jumping straight into Vim would be preferred, but an answer for emacs as well would be thorough. (more) |
— | almost 2 years ago |
Comment | Post #286772 |
I like `ls -A | wc -l`, but I'm not sure why it works. `ls -A` outputs
multiple files on each line, yet `wc -l` catches them all. I would think
you'd need `ls -A -1 | wc -l`. (more) |
— | almost 2 years ago |
Edit | Post #286769 | Initial revision | — | almost 2 years ago |
Question | — |
How to get number of files in directory How do you find out the number of files in a directory from the command line? (more) |
— | almost 2 years ago |
Comment | Post #286758 |
Sounds very promising, but not working for me (X, st terminal, zsh). Even so, I'd like to map this behavior to the default `yy`. (more) |
— | almost 2 years ago |
Edit | Post #286725 | Initial revision | — | almost 2 years ago |
Question | — |
How to make vi-mode bindings in terminal copy to clipboard If I want to yank my last command I can `UP` `yy`, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? I am using zsh, but an answer for bash and zsh would be thorough and appreciated. (more) |
— | almost 2 years ago |
- ← Previous
- 1
- 2
- Next →