GithubHelp home page GithubHelp logo

aswinkumar863 / sort-editors-vscode Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 2.0 870 KB

Automatically sorts the VSCode editors when they are opened

Home Page: https://marketplace.visualstudio.com/items?itemName=aswinkumar863.sort-editors

License: MIT License

TypeScript 74.29% JavaScript 25.71%

sort-editors-vscode's Introduction

Hi there ๐Ÿ‘‹

Welcome to my profile! I'm a passionate web developer. Thanks for visiting and I'd love to connect!

Gmail Badge Hackerrank Badge StackOverflow Badge Instagram Badge Profile Views

Metrics

sort-editors-vscode's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sort-editors-vscode's Issues

Sort open editors fails if an editor is open for a file that's been removed

If you have an editor open with a file that's been removed on disk, sort open editors fails, with this error popping up in the console. I see the "sorting open editors 1/74" notification pop up briefly, and then get removed and no sorting happens.

console.ts:137 [Extension Host] stack trace: Error: cannot open file:///opt/..../nonexistent_file.txt. Detail: Unable to read file '/opt/...../nonexistent_file.txt' (Error: Unable to resolve nonexistent file '/opt/...../nonexistent_file.txt')
    at r.$tryOpenDocument (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2774:76432)
I @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:455
_invokeHandler @ rpcProtocol.ts:440
_receiveRequest @ rpcProtocol.ts:370
_receiveOneMessage @ rpcProtocol.ts:296
(anonymous) @ rpcProtocol.ts:161
invoke @ event.ts:626
deliver @ event.ts:828
fire @ event.ts:789
fire @ ipc.net.ts:646
_receiveMessage @ ipc.net.ts:988
(anonymous) @ ipc.net.ts:852
invoke @ event.ts:626
deliver @ event.ts:828
fire @ event.ts:789
acceptChunk @ ipc.net.ts:390
(anonymous) @ ipc.net.ts:346
E @ ipc.net.ts:87
emit @ node:events:526
addChunk @ node:internal/streams/readable:315
readableAddChunk @ node:internal/streams/readable:289
Readable.push @ node:internal/streams/readable:228
onStreamRead @ node:internal/stream_base_commons:190

Editors get pinned if there are pinned editors existing already

  • One ore more pinned editors are existing already (and located as the left-most tabs)
  • The extension puts a newly opened editor, let's say filename starting with an a, as the very first editor left-most.
  • This editor then receives a pin state.

Expected behaviour: Pinned editors should always stay left-most. The extension should organize it's editors exactly next to (right of) the pinned editors.

Thanks for a great extension!

Animated screenshots unintelligible

The animated screenshots are both too fast and too tiny. Please, kindly re-record

  • with a much smaller screen resolution, and/or with a much larger font size, so that the text will be much larger (in proportion to the overall screen/dimensions), hence more readable, and
  • much slower, so we understand what's going on, and
  • ideally with comments in the tabs/files that you're switching to/from, where those comments describe what is happening, and highlight each applicable comment before you actually perform that tab switch/action, and
  • ideally recorded as both an animated gif, and as a video, so that people can pause/resume/rewind the video.

Thank you in advance for considering.

Feature requests

Hi Aswin.

This looks promising. :-)
Two request/suggestions which would would make it fit my own needs even more:

  • Do an automatic 'Sort Active Editor' after each save, to make sure that when you save a file - either a new file, or an existing file using a new name - the order is adjusted.

  • Unsaved files are sorted as starting with the U(ntitled). It would be great if you could also have the option to sort the tabs using the tab title, more in line with how the editors are sorted in the open editors view of the side bar.

So this...

image

... as opposed to...

image

Regards,
Ruud

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.