obsidian-tabout
obsidian-tabout copied to clipboard
[Bug]: It's not working..
Describe the bug
Simply doesn't work. I installed and enabled it, but it doesn't work in either the "environment" or anywhere else. It simply creates a "quoted block".
Tabout 1.0.0 version Obsidian 1.4.14
Relevant errors (if available)
No response
Steps to reproduce
Install the plugin..
Expected Behavior
No response
Addition context
No response
Operating system
Windows
I have the same issue
When I first installed the plugin, I also noticed that none of the pre-existing rules worked.
But try the following steps:
- Type placeholder into your document
- Put the cursor somewhere within the word "placeholder"
- Run the command “Add Rule for this Environment”.
- Type "**" in the "Characters" field.
- Click "Add this Rule"
You will find that tabout now works with the ** ** environment. Repeat that with all the other environments you want to tabout of (eg. [], [[]], strong, em)
Note: Always type some words between the open and closing characters otherwise tabout might use the wrong environment.
@vishae Thank you, but i tried, and yes.. it works with the ** but that's it.. It doesn't work with any of the other: "", [], [[]], `, symbols..
@Reno0vacio For the "", did you add the other symbols to your rule?
Example.
For the [] and [[]], you need rules that points to "formatting_formatting-link_hmd-barelink_link" and "formatting-link_formatting-link-start" environments respectively.
But it's easier to create those rules using the steps I mentioned above (ie. type [placeholder] in your editor, have the cursor in the world "placeholder" and run the command, “Add Rule for this Environment”)
Let me know how you go.
@vishae, care to share your .obsidian/plugins/tabout/data.json
config file? There are so many environments and it’s hard to configure them all.
Will lvoe a sharing file!
@TamingTheMammoth sure data.json
This is really helpful, thx :D
I have the same problem as @Reno0vacio. After I tried @vishae's data.json
, it was still the same. Tabout worked only for ** **
, and made a quoted block for anything else.
I have the same problem as @Reno0vacio. After I tried @vishae's
data.json
, it was still the same. Tabout worked only for** **
, and made a quoted block for anything else.
same @vishae - what do your obsidian hotkeys look like?
hey @notuntoward and @Sprocketer, instead of using my data.json file, I suggest you follow the instructions I provided on the 17th Nov and 22nd Nov to build your own rules/data.json.
Environments change when Obsidian updates their code or depending on the theme you're using. As such, my data.json file may not work for you.
As a refresher:
- Go to the document in Obsidian with the ** ** or " " or whatever you want to tab out of
- Place your cursor within the ** ** or " " or whatever
- Activate Command Palette (default hotkey is Cmd/Win+P)
- Find the Tabout command, "Add Rule for this Environment" and click on it
- In the "Characters" field, type in ** or " or ) or whatever closing character you want
- Click "Add this Rule" when you're done
You would need to create one of these for every set of characters (eg. " ", ' ', ( ), [ ], [[ ]]) you want to tab out of. You also need to create a set of those rules for every "environment" you want the rules to activate (explanation of what "environment" is below).
Instead of creating them all in one go, I suggest only creating them as you need.
If you open the Tabout settings, you will see the existing rules you have:
Clicking "Edit" will show you details about the rules:
If you followed the above instructions in just a plain document, most likely your first "environment" is "document".
What this means is if you want to tab out of a header in your document, for example: ## This is a header (and I want to tabout of the brackets)
then you'll need to put your cursor within the brackets in the header and follow the instructions above. You'll need a separate set of rules for H1, H2, H3 etc.
It may seem like a lot of work, but you'll find you only need to use these for a handful of environments, and you only need to redo this if there's been a major change in Obsidian.
Note 1: This doesn't work for list environments. If you tab in a list, the list would just indent instead of tabbing out. I mean, I would love it if it tabbed out of the () or whatever first and then indent, but the plugin doesn't seem that smart.
Note 2: For the internal links [] [[]], in my post on the 22nd Nov, I mentioned the environments "formatting_formatting-link_hmd-barelink_link" and "formatting-link_formatting-link-start" respectively. Do not use these, as they have changed in Obsidian. Just follow my instructions above to create them, the plugin will automatically discover the environment you need.
@vishae Got it done last night - a bit annoying that you can't set rules for all headers / all indents of unordered lists but it works I guess
Thanks, @vishae, for the meticulous tips.