Comments (5)
I like tabs. If using tabs is questionable then there wouldn't be an option for anyway.
Most people just follow whatever standards a project already uses, and .editorconfig
serves exactly that purpose so that tools like IDEs can automatically follow whatever the project uses.
github.com never display arrows for tabs:
from obsidian-sample-plugin.
You're right, it's not that github.com that added arrows. It's my https://github.com/refined-github/refined-github extension.
Fair enough about your preference. Just be aware that this is not a popular choice for JavaScript/TypeScript: https://ukupat.github.io/tabs-or-spaces/
from obsidian-sample-plugin.
Hey, 16.78% is a good enough size (plus that's a really low sample size). Either way, this isn't a popularity contest and in the vast majority of the cases this choice doesn't really matter.
from obsidian-sample-plugin.
Ok, if you want a larger sample size: https://hoffa.medium.com/400-000-github-repositories-1-billion-files-14-terabytes-of-code-spaces-or-tabs-7cfe0b5dd7fd#.o7n8zeezx
Yeah, it's not a popularity contest as much as it is a question of Developer Experience and whether you care about catering to most of your "customers" or just your personal preference. (Some in fact may call it a career/financial consideration lol. J/k)
Anyway, I know that I'm not telling you anything that you don't already know. I'm giving voice to those who may be just as annoyed as I am to see so much Obsidian plugin source code with tabs. Not a big population, I admit. But something had to be said lol
from obsidian-sample-plugin.
One could also argue that Tabs is best used in this kind of templates because it gives everyone a visual choice of whether to use 2 spaces for each tab or 4 spaces for each tab, without constantly converting the source code itself between the two.
Either way, this is likely one of the top unsolved problems in the computing world along with Windows vs Mac vs Linux.
(Some in fact may call it a career/financial consideration lol. J/k)
In that case, we should probably make plugins in Closure instead.
from obsidian-sample-plugin.
Related Issues (20)
- Feature request - TSDoc integration HOT 1
- Feature request — expanding the sample plugin with more examples/features HOT 1
- Failed to run `npm run dev` HOT 1
- Can't build plugin with npm run dev HOT 3
- npm install not working? HOT 1
- Add additional Functionality to the Plugin HOT 2
- [BUG] TypeScript Compile fails in Sample Plugin with TypeScript `5.1.6` HOT 1
- [BUG] Failed to compile on Linux Pop!_OS 22.04 LTS HOT 2
- esbuild.config.mjs sourcecode HOT 1
- Minify production build
- My mistake
- Config Dir sync no longer working (Reported .DS_Store issue) HOT 1
- Organise typescript sources into separate src hierarchy
- adding a toggle button HOT 1
- Display download successful, but not in the local file library HOT 1
- Custom View Explorer
- [feature request] multiple cursor positions (each linked to a different tab) for same file HOT 2
- obsidian fails to load sample plugin HOT 1
- Version number for tags and releases HOT 1
- License
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-sample-plugin.