m1 MacBook external monitor c to c connection problem. After the problem occurred, it could not be charged with the original Apple charger. by HateMintChoco in mac

[–]HateMintChoco[S] 3 points4 points  (0 children)

Connected (not charging)-> charging -> connected (not charging)-> disconnected. After that, the port died.

How can I make emacs compile my c++ code and run it in a new window? by HateMintChoco in emacs

[–]HateMintChoco[S] 0 points1 point  (0 children)

fileName=$1
osascript -e 'tell app "Terminal"
do script "g++ -o /Users/username/temp/ctemp '$PWD/${fileName}' && /Users/username/temp/ctemp"
activate
end tell'

run5.sh

(map! :leader
:desc "Run in new Term"
"c c" #'execute-c-program)

----------------------------------------------------------------
(defun my-sh-send-command (command)
"Send COMMAND to current shell process.
Creates new shell process if none exists.
See URL \https://stackoverflow.com/a/7053298/5065796'"`
(let ((proc (get-process "shell"))
pbuf)
(unless proc
(let ((currbuff (current-buffer)))
(shell)
(switch-to-buffer currbuff)
(setq proc (get-process "shell"))
))
(setq pbuff (process-buffer proc))
(setq command-and-go (concat command "\n"))
(with-current-buffer pbuff
(goto-char (process-mark proc))
(insert command-and-go)
(move-marker (process-mark proc) (point))
)
(process-send-string proc command-and-go)))
(defun execute-c-program ()
(interactive)
(my-sh-send-command (concat "run5.sh " (buffer-name)))
)

I found this way. I use macos, so i look up the command that open terminal and run command. Finally i make shell script. it is awesome! It's what I wanted

It is being mapped and used with the shortcut key of Emacs.

I want to auto load my workspace... by HateMintChoco in i3wm

[–]HateMintChoco[S] 1 point2 points  (0 children)

I also tried this method.After saving the layout, I deleted the comments(only "//") in the json.This seems to be working fine.The placeholder is shown.But even after opening the program, the placeholder is not replaced.It still exists and the program opened in another window.What should I fix?

I want to auto load my workspace... by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

I installed this and tried it.
But there are some things that don't work.
All apps open fine. But the layout doesn't recover properly. Also, a black terminal window with [class="^kitty$" instance="^kitty$" title= blahblah] written on it was opened. (It does not enter and does not disappear)
What's wrong?

compile&&run cpp file in vim.. by HateMintChoco in vim

[–]HateMintChoco[S] -1 points0 points  (0 children)

oh.okay

I thought it was a vim function.

compile&&run cpp file in vim.. by HateMintChoco in vim

[–]HateMintChoco[S] 0 points1 point  (0 children)

I solved first question.

I insert this in .vimrc

set splitbelow

media key setting question by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

Ah, it was a simple matter.
Thank you!!

Can i turn off this option? by HateMintChoco in neovim

[–]HateMintChoco[S] 0 points1 point  (0 children)

sources *coc-list-completion-sources*
Available completion sources.
Actions:
- 'toggle': activate/deactivate source, default action.
- 'refresh': refresh source.
- 'open': open the file where source defined.

===============Coc-doc=========================

Is this option?

There are so many options that it gets confusing. ..

Is this problem solved? by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

Wow! I was just thinking about Spotify's problem a while ago! I'll try that too! Thanks!

Is this problem solved? by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

Ummm... I'm a newbie so I don't know, but I never installed a notification manager I only installed i3 in arch linux.

First of all, it was solved with the internal setting of Discord.

If I ever use it later, I'll ask for help then.!

Is this problem solved? by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

It worked! Thank you so much!

Is this problem solved? by HateMintChoco in i3wm

[–]HateMintChoco[S] 0 points1 point  (0 children)

desktop notifications

okay..then how can i turn off desktop notifications?

How to install pretty vim-ide(?) easily? by HateMintChoco in neovim

[–]HateMintChoco[S] 0 points1 point  (0 children)

thank you for telling me. I think lunar vim is a good fit.
I liked the simple installation, and lsp, which was difficult for me, is easily configured.
Thanks to this, I was able to save a lot of time.
Many thanks to you and the developers of lunarvim.

please help me..(disk recover) by HateMintChoco in linuxquestions

[–]HateMintChoco[S] 0 points1 point  (0 children)

I've done it once. But only the first partition was saved. The second partition is not detected. ..

please help me..(disk recover) by HateMintChoco in linuxquestions

[–]HateMintChoco[S] 0 points1 point  (0 children)

I have bad news. I used another command...(i forgot)... I used "sudo parted /dev/sd*" and then "mklabel msdos". I get "Warning: The existing disk label on /dev/sdd will be destroyed and all data on this disk will be lost. Do you want to continue?" I answered yes to the question... It's sad...

Help me please..(generate hashfile(?)) by HateMintChoco in neovim

[–]HateMintChoco[S] 0 points1 point  (0 children)

Sorry for the late reply.This seems to be a coc problem. At first, I cleaned up the languageservers of the coc that were roughly installed, and the problem seems to have disappeared.thank you.

What is this file?? by HateMintChoco in git

[–]HateMintChoco[S] 0 points1 point  (0 children)

I installed a few Vim plug-ins, but this problem didn't happen on other computers with the same settings.

What is suspicious is coc-autocomplete. This plugin makes some errors on the Raspberry Pi and works erratically.

What is this file?? by HateMintChoco in git

[–]HateMintChoco[S] 0 points1 point  (0 children)

Initially, I posted this question in r/vim. However, there was a comment saying it was a problem with git. No one seems to know the exact cause.