aviaryan / closefolder Goto Github PK
View Code? Open in Web Editor NEWSublime Text plugin to close all open files inside some folder or all open files inside the folder of current active file.
License: MIT License
Sublime Text plugin to close all open files inside some folder or all open files inside the folder of current active file.
License: MIT License
On OSX 10.14.6 (18G87)
Sublime 3.2.1 Build 3207
Activating Close Folder via any method (right click in file, right click on folder in project file list, or use command pallet) results in a failure. No tabs get closed. Console error:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1088, in run_
return self.run(edit)
File "/Users/admin/Library/Application Support/Sublime Text 3/Packages/CloseFolder/CloseFolder.py", line 15, in run
if os.path.dirname(vw.file_name()).find(dirname) == 0:
File "./python3.3/posixpath.py", line 151, in dirname
AttributeError: 'NoneType' object has no attribute 'rfind'
It would be nice, if will be possible to close files recursively from command palette.
I think, that working in command palette — is better. This saves time in comparison with navigation in the sidebar. About more reasons see here.
For example, I have folder RootFolder
:
D:\RootFolder
├───FirstSubfolder
│ FirstFile.txt
│
├───SecondSubfolder
│ SecondFile.txt
│
└───ThirdSubfolder
└───Subsubfolder
ThirdFile.txt
FirstFile.txt
, SecondFile.txt
and ThirdFile.txt
open for me in Sublime Text. I open tab with FirstFile.txt
→ Ctrl+Shift+P → CloseFolder: Close Folder Recursively
→ all files in RootFolder
, include SecondFile.txt
and ThirdFile.txt
close for me.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.