Settings

Theme

Ask HN: Is there a code editor that shows multiple files in a single pane?

2 points by vaughan 2 years ago · 3 comments · 1 min read


Like when you view a pull request on Github.com...

gregjor 2 years ago

Do you mean the two panes (before and after) that scroll together? I think most editors can do that. Vim has a diff view. So does VSCode.

  • vaughanOP 2 years ago

    Vertically, like Github's Pull Request changed files.

    • gregjor 2 years ago

      If we're looking at the same thing, GitHub's vertical view of multiple files in a pull request is not an editor, it just views files. If you choose to edit a file you get one file in an editor window.

      You could fairly easily write a command line utility to view multiple files with headers and line numbers, using the normal utilities. You could add syntax highlighting with one of the command line syntax highlighting utilities. With a little more work you could do the same thing on a web page, like GitHub does.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection