Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spapas/goto-previous-buffer
A VS code extension to move to the previous buffer you were seeing
https://github.com/spapas/goto-previous-buffer
extension typescript visual-studio-code visual-studio-code-extension
Last synced: 10 days ago
JSON representation
A VS code extension to move to the previous buffer you were seeing
- Host: GitHub
- URL: https://github.com/spapas/goto-previous-buffer
- Owner: spapas
- License: mit
- Created: 2019-06-14T10:09:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T06:18:27.000Z (about 2 years ago)
- Last Synced: 2024-12-06T14:50:55.020Z (17 days ago)
- Topics: extension, typescript, visual-studio-code, visual-studio-code-extension
- Language: TypeScript
- Size: 68.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# goto-previous-buffer
Marketplace link: https://marketplace.visualstudio.com/items?itemName=serafeim.goto-previous-buffer
This is a really simple plugin that offers a single command for moving to the previous buffer (window/file etc) you were viewing.
This should is similar to how the `` or `:buffer#` command works in VIM. This is something that most VIM users use all the time
(and probably have mapped to a better key like `shift+tab`). The workflow is similar to this:I am editing a file `A` to add something. Then I press `ctrl+p` to jump to another file `B` to use what I just added. Then (of course) I
forget what I did on file `A` so I quickly switch back to `A` to take a peek at what I did there and immediately switch back
to `B` to once again do the change. The after a while I will need take a peek *again* to `A`, etc. Using this you should be able to do
that very quickly.*Notice that I used the "buffer" word to make the connection with VIM :)*
## Extension Settings
You will need to add a keyboard shortcut to execute the `goto-previous-buffer` command. I recommend assigning it to `shift+tab` or `ctrl-shift+tab` (I know
that these keyboards are already assigned to move the indentation left or cycle to the other open buffers but I use that thing all the time so I recommend assigning it to an easy combination). You can also use `ctrl+6` like vim! To do that press `ctrl+shift+p` and then search for `open keyboard shortcuts`. In the filter in this write write `goto-previous-buffer` and then click the cross or pencil to change the shortcut to your desired one.## Known Issues
None that I know of. This probably won't work when the previous thing you visited was not a real file :)
## Release Notes
### 1.0.2
Update license.
### 1.0.1
Change README.
### 1.0.0
Initial release.