Graviton-App icon indicating copy to clipboard operation
Graviton-App copied to clipboard

[Suggestion] Find in project

Open AlexWayfer opened this issue 4 years ago • 5 comments

Right now Ctrl-F opens find in file and Ctrl-Shift-F opens replace in file.

But I think there should be Ctrl-Shift-F for "Find in project", and "Replace" should be optional thing in "Find in file" and "in project".

AlexWayfer avatar Apr 19 '21 10:04 AlexWayfer

That would be an interesting thing to have. But maybe it makes more sense on a IDE? I don't know. Anyway, whenever I start working on Graviton again ( I am currently doing other stuff ) I will think about it.

Thanks for the suggestion 😄

marc2332 avatar Apr 19 '21 19:04 marc2332

But maybe it makes more sense on a IDE? I don't know.

I think I don't understand you. Do you mean that this is kind of IDE feature, while Graviton is just an editor?

I'm active user of Atom Editor for years. How do you think, is it an editor or an IDE? I think it's an extensible editor (it's even specified in the name). And it has such feature out-of-box. And it's useful, because, I'm not sure about you or someone else, but I work on whole projects, I don't open a new editor instance per file from a project. Files tree, maybe some checks (linters), etc. And when I want to rename a variable for initialization, for example, it can require renaming in all places where initialization of this class happens. And it's hard to remember every case, all the code, so search through the whole project is kind of necessary for me. And I don't perceive it like a heavy IDE feature, for some integration or flow, for example. Just searching, just editing (replacing), no more.

AlexWayfer avatar Apr 19 '21 19:04 AlexWayfer

Yeah, I kinda want Graviton to be just an extensible Text editor. Anyway, this doesn't mean I won't include that feature. I just have to think about it

marc2332 avatar Apr 19 '21 19:04 marc2332

Yeah, I kinda want Graviton to be just an extensible Text editor.

It's OK. As I wrote, Atom Editor is just extensible editor too. And, if you're interested, find-and-replace is just a standard extension for it with its own enabling/disabling and configuration, so Atom has a lot of functionality splitted by extensions. If you want — it can be non-standard, external package (extension).

AlexWayfer avatar Apr 19 '21 19:04 AlexWayfer

Yeah, I could make it as an extension. That's not a bad idea..

marc2332 avatar Apr 19 '21 19:04 marc2332