Giter Club home page Giter Club logo

close-tabs's Introduction

Hello, Leonardo here ๐Ÿ‘‹

I'm a ฯ€-shaped Frontend Developer, Open Source enthusiast and content creator. Awarded GitHub Star ๐ŸŒŸ since 2023. Awarded Microsoft MVP ๐Ÿ”ท since 2024 (Developer Tools, Web Development).

I enjoy constantly learning new skills and sharing knowledge with everyone around me. You can find my content on YouTube and leonardomontini.dev.

Let's get in touch! Connect with me on:

twitter logo linkedin logo youtube logo discord logo devto logo

My latest YouTube videos โ–ถ๏ธ Dev Leonardo

TanStack Router: Route/Location Masking React useOptimistic hook in Nextjs 14 Your next side project won't fail this time ๐Ÿ’ก The Missing Shadcn Component ๐Ÿช„ I like camelCase TanStack Table: Backend Pagination, Filter & Sort with TanStack Query + TanStack Router

โ™Ÿ๏ธ Are you a Chess player? You should check out chess-stats-action ๐Ÿ˜‰

Learning or improving your Web Development skills? Let's do it together with the github-stats project!

close-tabs's People

Contributors

balastrong avatar ochowei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

close-tabs's Issues

Find a proper way to close the tabs

The current solution is not ideal as also causes some flickering while iterating over the tabs to focus them one by one.

for (const uri of targetFiles) {
// https://stackoverflow.com/questions/44733028/how-to-close-textdocument-in-vs-code
await vscode.window.showTextDocument(uri, {
preview: true,
preserveFocus: false,
});
vscode.commands.executeCommand("workbench.action.closeActiveEditor");
}

This works, but there has to be a better way to do that.

Close Unchanged only on the current group

As of today "Close Unchanged" closes on all tab groups.
It would probably make more sense to only give it effect on the current tab group (based on which tab is clicked or active when invoked)

Bonus: add a config to toggle this group/global behaviour

Add hover buttons with icons to the panel of Open Editors, and also alter the context menu of same panel

Is it possible to add icons (hover buttons) to the Open Editors panel? Only for "Close Saved", "Close Unchanged" and "Close Diff Editors".

image

Also, the context menu that shows when you right-click an editor in the Open Editors panel could have the same options together with "Close to the Top" and "Close to the Bottom".

image

PS: Thanks for the great extension. Happy to have it, and I'll report issues as I use it over time. I wish there was some way to collapse all the eight "Close" options into 8 buttons with icons in a row instead of taking up so much vertical space in the tab context menu. I know this is not possible right now in VS Code. Just dreaming. Lol (We have/had this kind of menu in Firefox, if you want to get an idea what I mean.)

Close to the Left isn't working

Very strange, but all other menu items that this extension adds are working, and the 'Close to the Left' menu item does nothing. I also separately tried another extension that provides this same menu item, and noticed the same thing. I've used that extension for years and it worked fine, and then stopped working recently. Also worth noting that running the "Close Editors to the Left in Group" command from the command palette behaves as expected, as does the built-in "Close to the Right" command. I've tested this both on the latest stable VSCode, 1.77.3, and 1.78-insiders.

Version: 1.78.0-insider
Commit: e410e7c66e7ce5c6bc31f73150d66857804a0ee9
Date: 2023-04-28T12:48:09.032Z
Electron: 22.4.8
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.4.0
Sandboxed: Yes

Close Unchanged closes all tabs.

For some reason Close Unchanged seems to close all tabs, even if some of them have uncommitted changes.
I am using C and C++ files and the C/C++ extension by Microsoft.

Close Left

Add button to close tabs on the left (opposite as the existing Close Right)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.