17 Mar 2023 |
Pascal Kuthe | I guess you mean LSP rename? You can do that with `<space>r` | 15:38:27 |
nanu_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 |
Alexander Brevig | Is 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 left the room. | 18:53:27 |
Lucca 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 |
Lucca 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 |
Lucca 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 |
Lucca Huguet | * sd string\_you\_want\_to\_replace new\_string $(fd --type file) | 21:21:12 |
Lucca Huguet | * sd old_string new_string $(fd --type file) | 21:21:41 |
Lucca 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 |
Lucca 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 |
Sora |  Download image.png | 01:10:04 |
Sora | made a meme. lol | 01:10:07 |
Not_Leader | is there a repo for the typed scheme in development or is it too early in development for that? | 10:47:39 |
gabydd | Still too early | 10:52:05 |
Not_Leader | oh ok | 11:02:53 |
Not_Leader | * oh ok thanks | 11:03:03 |
| @thedisruptivecollective:matrix.org left the room. | 20:59:54 |
| parallelepiped joined the room. | 22:47:03 |
20 Mar 2023 |
nanu_naane | How to select word under cursor? | 05:09:05 |
siddug | miw or eb is what I use | 05:31:49 |
nanu_naane | Thank you. | 06:06:29 |
| ohno418 joined the room. | 10:34:23 |
Lucca 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 |
Lucca 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 |
| manmeet changed their display name from Manmeet Singh to manmeet. | 17:37:33 |
| manmeet set a profile picture. | 17:38:10 |
djo_kirawi | Is there a good TUI equivalent of https://cplusplus.com/reference/? | 20:21:38 |
djo_kirawi | Oh maybe I could download https://en.cppreference.com/w/Cppreference:Archives and use some kinda offline viewer. | 20:24:08 |
| Charlotte 🦝 (it/rac/racs/racself/🦝/plush) changed their profile picture. | 21:07:32 |