4 ms·
This is pretty cool. Expanding a bit this would be great in an IDE, Often I have wanted to simply select a bunch of files and edit them at once (maybe with a s
by benjaminjackman 6y ago
This is pretty cool.
Expanding a bit this would be great in an IDE, Often I have wanted to simply select a bunch of files and edit them at once (maybe with a special temporary comment between them) as a single file then save the changes back to the individual files. Would be nice if that was a right click context menu item or bindable command.
In C(++) land I could see it being extremely useful for h/c(pp) juggling if the IDE automagically did the combining.
Finally being able to write the comments that separate the files as I type would be really nice when prototyping out new code you want all
together before you split it up.
Also perhaps if its common enough certain meta files that describe link other files together could be left as shortcuts in the repo. When you open those the files (or portions of files) they reference are opened for editing.
- johntash 6y agoEmacs + Org-mode can sort of do this using org-babel. A lot of people use it for literate programming, or even just for documenting their own emacs configuration. I'm not sure if there's already a plugin or script that can take a selection of files like you mentioned, but it shouldn't be hard to write one either.
- breck 6y ago> Often I have wanted to simply select a bunch of files and edit them at once DirEd (Directory Editor IIRC) is one thing I've seen sort of do this. https://www.gnu.org/software/emacs/manual/html_node/emacs/Dired.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Di... I'm really surprised that idea hasn't been doubled down on in IDEs. I still use a handy little Mac App called Rename It to edit a bunch of file names at once, because DirEd I find a bit clunky. I've taken some stabs at building this kind of editor, but it's definitely hard to nail. At least for the Tree Notation web ides we can get it added eventually, perhaps it will be easier now that CodeMirror 6 is out (which I use for the fancy syntax highlighting and all that in the current Language builder IDE). But I 100% agree with your ideas here. If something like this (either as one scrollable buffer, or perhaps a bunch of buffers in a 2-D spreadsheet like interface), ends up being the primary IDE view in 10 years, I would not be surprised.
- xixixao 6y agoI built this a long time ago: https://github.com/xixixao/many-to-one https://github.com/xixixao/many-to-one
- breck 6y agoInterested but the Demo gif says "This Content is Not Available".
- benjaminjackman 6y agoI've never seen that before, looks really neat, I'll have to try it out. Thanks.