Tabs story

This commit is contained in:
2024-04-04 09:22:31 +02:00
parent 2fa4752aec
commit ac01472436
6 changed files with 202 additions and 1 deletions

1
.obsidian/app.json vendored Normal file
View File

@@ -0,0 +1 @@
{}

3
.obsidian/appearance.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"accentColor": ""
}

30
.obsidian/core-plugins-migration.json vendored Normal file
View File

@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}

20
.obsidian/core-plugins.json vendored Normal file
View File

@@ -0,0 +1,20 @@
[
"file-explorer",
"global-search",
"switcher",
"graph",
"backlink",
"canvas",
"outgoing-link",
"tag-pane",
"page-preview",
"daily-notes",
"templates",
"note-composer",
"command-palette",
"editor-status",
"bookmarks",
"outline",
"word-count",
"file-recovery"
]

136
.obsidian/workspace-mobile.json vendored Normal file
View File

@@ -0,0 +1,136 @@
{
"main": {
"id": "37213d342da2ce8e",
"type": "split",
"children": [
{
"id": "a4941e3d2574f8fa",
"type": "tabs",
"children": [
{
"id": "27f92eabb0d9e153",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "content/blogs/vim/index.md",
"mode": "source",
"source": false
}
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "e65c6d4dfe080d61",
"type": "mobile-drawer",
"children": [
{
"id": "873147733d54189d",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
},
{
"id": "b146b101cbc77246",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "c785516319f0fc18",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
},
{
"id": "dd30845dfe080d2e",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
}
],
"currentTab": 0
},
"right": {
"id": "f13f20998720f867",
"type": "mobile-drawer",
"children": [
{
"id": "5929afab728a7bd6",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"file": "content/blogs/vim/index.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "1747401333304919",
"type": "leaf",
"state": {
"type": "outgoing-link",
"state": {
"file": "content/blogs/vim/index.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "94454a31ac090058",
"type": "leaf",
"state": {
"type": "outline",
"state": {
"file": "content/blogs/vim/index.md"
}
}
}
],
"currentTab": 0
},
"left-ribbon": {
"hiddenItems": {
"switcher:Open quick switcher": false,
"graph:Open graph view": false,
"canvas:Create new canvas": false,
"daily-notes:Open today's daily note": false,
"templates:Insert template": false,
"command-palette:Open command palette": false
}
},
"active": "27f92eabb0d9e153",
"lastOpenFiles": []
}

View File

@@ -50,6 +50,17 @@ This also means that for starting to use vim, you don't need to do much more tha
You might think learning vim is a daunting task with lots of commands to learn, but it's surprisingly easier than you might think. Sure there are a few commands to learn but most of them are intuitive and most importantly, they chain together since most commands work with the framework `<action><motion>`. Action is what you want to do, for example <kbd>d</kbd> for delete, <kbd>v</kbd> for visual which means highlight, <kbd>y</kbd> for yank which means copy... Motion is the text block you want to edit, for example <kbd>w</kbd> for word, <kbd>iw</kbd> for inner word, <kbd>Left</kbd> for the character on the left of your cursor and so on.
Vim also has a great built-in way of learning its binding called `vimtutor` which can be run on most Unix systems (or even from git bash if you are on windows).
##
## A story about tabs
### The classic
In a traditional editor, you are probably used to have a few dozen tabs/file open. When you start having too much of them, how do you find back your file? For me this was a huge pain point for a while, I tried every possible workflow:
- Close a tab as soon as I finished with the file. This proved to be a bad method for me since I often jump around files a lot and find myself lost in my tabs before cleanup time.
- Use "Close other tabs" or "Close tabs on the right/left" features to simply close everything when there is too much. This was efficient after a small debug/coding time but I needed to use this during coding sessions a lot when writing bigger features.
- Embrace the "too much open" and use tabs on two lines, keep 3/4 most important/used tabs of the time pinned to find them quickly. I really liked having tabs pinned because it reduced the amount of time/mental strain needed to jump back to the most important files. Having items on two lines on the other hand was really bad, I needed twice as much time to look for the file I wanted to use before clicking on it.
- Abandon open tabs and rely on the file tree. Since I found it hard to search for the unorganized tabs, I thought maybe having them organised in a tree would help ; it was okay on small projects but when files were too nested or too many it was a nightmare to find them.
### How vim deals with this?
<!-- vim: wrap -->