!glLuldscRKMQxGWgjZ:matrix.org

Random

442 Members
Off-topic discussions44 Servers

Load older messages


SenderMessageTime
17 Mar 2023
@pascalkuthe:matrix.orgPascal KutheI guess you mean LSP rename? You can do that with `<space>r`15:38:27
@nanu_naane:matrix.orgnanu_naane I am new to this. I have some 50 source files and I want to replace a variable let's say Pressure to temperature 15:57:28
@alexanderbrevig:matrix.orgAlexander BrevigIs it the same variable or is it more like a lexical actually change all letters verbatim? If the former then see the above answer, for the latter I use sed (and some times find, ripgrep, awk etc - depends on what needs to be done). Helix has no project wide search/replace yet. 18:47:55
@davidlion:matrix.org@davidlion:matrix.org left the room.18:53:27
@luccahuguet:matrix.orgLucca Huguet
In reply to @nanu_naane:matrix.org
I am new to this. I have some 50 source files and I want to replace a variable let's say Pressure to temperature

if you are using bash, go to the directory and run sd 'fast' 'FAST' $(fd --type file)

before that you have to cargo install sd and cargo install fd-find

if youre using nushell, I can show you the nushell way of doing this

21:18:03
@luccahuguet:matrix.orgLucca Huguet
In reply to @luccahuguet:matrix.org

if you are using bash, go to the directory and run sd 'fast' 'FAST' $(fd --type file)

before that you have to cargo install sd and cargo install fd-find

if youre using nushell, I can show you the nushell way of doing this

sd string_youo_want_to_replace new_string $(fd --type file)
21:18:59
@luccahuguet:matrix.orgLucca Huguet
In reply to @luccahuguet:matrix.org

if you are using bash, go to the directory and run sd 'fast' 'FAST' $(fd --type file)

before that you have to cargo install sd and cargo install fd-find

if youre using nushell, I can show you the nushell way of doing this

* sd string_you_want_to_replace new_string $(fd --type file)
21:19:21
@luccahuguet:matrix.orgLucca Huguet * sd string\_you\_want\_to\_replace new\_string $(fd --type file) 21:21:12
@luccahuguet:matrix.orgLucca Huguet * sd old_string new_string $(fd --type file) 21:21:41
@luccahuguet:matrix.orgLucca Huguet
In reply to @nanu_naane:matrix.org
I am new to this. I have some 50 source files and I want to replace a variable let's say Pressure to temperature
*

if you are using bash, go to the directory and run sd 'fast' 'FAST' $(fd --type file) for example

before that you have to cargo install sd and cargo install fd-find

if youre using nushell, I can show you the nushell way of doing this

21:35:26
@luccahuguet:matrix.orgLucca Huguet *

if you are using bash, go to the directory and run sd 'Pressure' 'temperature' $(fd --type file) for example

before that you have to cargo install sd and cargo install fd-find

if youre using nushell, I can show you the nushell way of doing this

21:35:58
18 Mar 2023
@s0la1337:matrix.orgSoraimage.png
Download image.png
01:10:04
@s0la1337:matrix.orgSoramade a meme. lol01:10:07
@not-leader:envs.netNot_Leaderis there a repo for the typed scheme in development or is it too early in development for that?10:47:39
@gabydd:matrix.orggabyddStill too early10:52:05
@not-leader:envs.netNot_Leaderoh ok11:02:53
@not-leader:envs.netNot_Leader * oh ok thanks11:03:03
@thedisruptivecollective:matrix.org@thedisruptivecollective:matrix.org left the room.20:59:54
@parallelepiped:matrix.orgparallelepiped joined the room.22:47:03
20 Mar 2023
@nanu_naane:matrix.orgnanu_naaneHow to select word under cursor?05:09:05
@siddug:matrix.orgsiddug miw or eb is what I use 05:31:49
@nanu_naane:matrix.orgnanu_naaneThank you.06:06:29
@ohno418:matrix.orgohno418 joined the room.10:34:23
@luccahuguet:matrix.orgLucca Huguet

hey, for those of you that wanted copilot in the terminal, you can use this project https://github.com/sigoden/aichat and just call it with run-shell-command or insert-output

however it uses the OpenAI token, and the free OpenAI tokens are limited.

If I find an opensource version though, I will let you know

15:42:49
@luccahuguet:matrix.orgLucca Huguet *

hey, for those of you that wanted copilot in the terminal, you can use this project https://github.com/sigoden/aichat and just call it with run-shell-command or insert-output

however it uses the OpenAI token, and the free OpenAI tokens are limited.

If I find an opensource version though, I will let you know

edit: I havent tested bc im out of free tokens, though

15:53:25
@manmeet2003:matrix.orgmanmeet changed their display name from Manmeet Singh to manmeet.17:37:33
@manmeet2003:matrix.orgmanmeet set a profile picture.17:38:10
@kirawi:matrix.orgdjo_kirawiIs there a good TUI equivalent of https://cplusplus.com/reference/?20:21:38
@kirawi:matrix.orgdjo_kirawiOh maybe I could download https://en.cppreference.com/w/Cppreference:Archives and use some kinda offline viewer.20:24:08
@lotte:chir.rsCharlotte 🦝 (it/rac/racs/racself/🦝/plush) changed their profile picture.21:07:32

There are no newer messages yet.


Back to Room ListRoom Version: 6