Hey, I'm a student from Germany building apps with Flutter and plugins for Obsidian.
If you want to support me you can consider:
Tab Switcher - Obsidian Plugin
License: GNU General Public License v3.0
Seems like plugin stopped working (after version 1.0.0? )
I have two panes saved (calendar and kanban), but neither the shortcut nor running the command from the command-palette seems to be cycling through them.
It would be great if you could allow using Cmd+1, Cmd+2, Cmd+3 etc. to select tabs across split view panels as well if that is in any way possible.
However, in my case, that's probably due to an Obsidian issue that prevents making a sidebar document active. (Obsidian allows dragging a document into a sidebar pane, but it doesn't allow making it "active", even though you can click into it and edit it.) Sidebar documents are included in iterateLeaves() and getLeavesOfType("markdown"), so this plugin attempts to cycle through them. But since they cannot be made active, the previously-active leaf remains active, so the cycling stops.
One way to fix that would be for this plugin to skip such leaves when moving forward or backward. A simple way to do this is to check that the workspace.activeLeaf has actually changed after calling setActiveLeaf(). If it hasn't, then the leaf wasn't suitable, and needs to be skipped in the rotation. This approach should be forward compatible in case Obsidian ever actually allows sidebar leaves to become active.
~ @pjeby
Hi,
I often use Ctrl+Tab
to switch between the last two tabs. But I noticed that when I press these keys quickly, modal appears for a short time and then disappears. It's a little annoying.
Maybe it would help to set a small delay before the modal appears, or maybe it would only appear when I release the Tab
key while holding Ctrl
.
I use the Ctrl+Tab
hotkey for Go to previous tab
. All settings except Show modal
disabled.
Thanks for great plugin. This is what I was looking for!
Hi,
Shouldn't it be main.js
as opposed to main.ts
as per the readme?
Plugin works as advertised with the extension changed (and with it left as is strangely?)
I am new to coding so ignore me if I am missing something obvious.
Thank you for the plugin — I'm sure it's going to really help me.
Oliver
As title says, when cycling through panes, the text cursor does not cycle along with the panes, specifically in edit mode. When using your plugin to move from Pane A to Pane B, Pane B does get selected—as it should, but the text cursor remains in Pane A. I would have to use my mouse—which the plugin advertised would reduce the usage of in the first place—and manually select Pane B in order to relocate the cursor accordingly; otherwise, I would be typing on Pane A when I intended to type on Pane B, even though the latter is the focused pane. It would be great that switching from Pane A to B with your plugin would also move the text cursor from Pane A to B.
Hoping you would fix this issue and improve this great plugin further. Stay safe!
In most browsers, when you press ctrl+tab
and hold ctrl
, a small popup window showing the thumbnails of the recent tabs will appear. It would be really nice if this plugin implements that!
For about a half a year I thought this plugin is just really buggy so I avoided using it. However I just didn't know about the view type feature. As soon I digged into it, I understood that I just have to call the "Enable this View Type" command (for excalidraw, canvas, media files ect...) and then it would actually work. So I'm wondering why not enable it for all tab types by default? I believe this would be a pleasant feature for new users ;)
It would be awesome if this plugin could cycle not only through the main note panes, but also the left and right sidebar panes. See this FR that I made on Obsidian's Discourse: https://forum.obsidian.md/t/go-to-previous-next-sidebar-pane-and-focus-on-pane/57562. However, I don't expect that to be integrated soon so having it here instead (and hopefully being able to reuse a lot of the existing logic) would be awesome!
Hello @Vinzent03 !!!!!!!!
This FR is simple to explain: it's a setting that let's the user exclude pinned notes that are opeend in the workspace to pass in the cycle route.
Example A:
→ Note A
is Active
→ Note B
is Pinned
→ Note C
is Open
If the setting in ON the cycle commands will only cycle between Note A
and Note C
Example B:
→ Note A
is Open
→ Note B
is Pinned and Active
→ Note C
is Open
If the setting in ON:
→ the cycle commands will go to Note A
and Note C
to to exit the pinned note
→ then continues to cycle between only Note A
and Note C
I am using pinned notes to store some support notes that will only be open when I need to interact with their content
📸 I even have a css snippet that make this notes almost hidden in the workspace:
This way I have a specific command to make this pinned note Active when need:
As will probably know I use our beloved Hotkeys for Specific Files 💙💙💙 to quick switch to these pinned notes :)
Thanks for reading this !!!!! I hope you like my suggestion 🙏 🙏 🙏
Let me know if you need more information !!!
Have a great day 🌞
Config:
{
"viewTypes": [
"markdown",
"canvas",
"pdf"
],
"showModal": false,
"skipPinned": false,
"stayInSplit": true,
"focusLeafOnKeyUp": false,
"useViewTypes": true
}
Hotkey config:
"cycle-through-panes:focus-on-last-active-pane-reverse": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "U"
}
]
Versions:
Obsidian v1.6.3
Tab switcher 1.4.0
Ubuntu 22.04
When I press Ctrl+Shift-U
first time, tab switches. Any further keyboard input in app is ignored (can't write text too).
No error at Ctrl-Shift-I
DevTools console
.... and does not cycle throught them.
Thanks for this plugin!
It can be improved by having a reverse cycling command with "Ctrl + Shift +Tab"
Great plugin but it would be nice if there was an option for it to behave like alt-tab. I know the functionality works like chrome, but alt tab makes more sense to me.
I'm looking for the ability to quickly switch between the same 2 notes:
Example: I have 4 panes open.
I can quickly switch between two notes without the full cycle, or I can keep holding ctrl while taping tab to cycle.
This is how alt-tab works on windows to cycle through windows.
Hi,
I'm finding that MRU cycling is not working when the "Show modal when switching tabs" option is disabled.
It's not a biggie, I'm happy to have MRU at all so thanks for that!
Great plugin!
I don't know if it is already implemented (to my knowledge not), but when I am on the first pane and want to reverse cycle (to the last pane), it does not work.
This could be an improvement:
Hello @phibr0 and @Vinzent03 !!!!
This FR is simple to explain: would be amazing if this plugin add support for the new .canvas
files when we are cycle between markdown files 😀
I hope you like my idea 🙏
I wish you a fantastic day ☀️
Looks like I cannot get this Plugin to work with ctrl+Tab.
This does nothing on macOS Catalina. Any idea what to lok out for?
Currently, it is only possible to switch tabs by pressing ctrl
+ <number>
.
ctrl
seems to be the hardcoded meta key, that this plugin listens on.
I would like to see an option, which allows me to set the meta key to a key of my liking.
I am used to pressing the alt
key when switching tabs, because it seems to be the default setting on Linux Firefox.
Issue description:
The modal don't appear when using Go to next/previous tab commands.
It only appears when I press Go to next/previous tab command once, then use Go to left/right tab commands.
I've enable / disabled the plugin and restarted Obsidian. I'll try to uninstall and reinstall. What else can I do?
Originally posted by victorstan May 6, 2023
I would like to request a feature that disables the tab switching when cycling. For instance, suppose you have three tabs opened, and you are currently on tab 1. When you press CTRL + TAB twice, you switch to the second tab and then to the third one.
I would like to be able to cycle between tabs without switching to them. In other words, switching should only occur when CTRL + TAB is released. This behavior is similar to the one in vscode.
Hi, first of all awesome pluging... Can't understand why this feature does not come automatically with Obsidian Tabs plugin. Anyway, there has been a major update which allow multiple windows, if I do ctrl+tab on a window that is not the main window then the plugin will execute the command on the main window and not in the on I'm currently on.
Hope I've described well the issue.
Sometimes when you have many tabs open, instead of ctrl+tab+tab+tab+tab...
to switch over them one by one, it would be much easier and time-saving to allow just clicking on the list item and jump to that tab.
I believe mouse click is a rather natural, intuitive, consistent interactive behavior we expect to be supported by default in a dropdown list-like thing, from our experiences and convention. For example, VSC and system-level task switchers (alt+tab
on Windows and cmd+tab
on macOS) all support mouse actions in the switcher. Other interface components of this kind, such as auto-completion list, suggestion list, search results, command palette, IME, etc. they all support either cycling the focus through all the list items by tab
, or mouse click on a certain item.
Therefore, I think it would be great if we can have this feature. And also, thanks for making this plugin!
I've installed the plugin but it's not working, any of the commands.
Things I've tried:
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.