obsidian-tabout icon indicating copy to clipboard operation
obsidian-tabout copied to clipboard

[Bug]: It's not working..

Open Reno0vacio opened this issue 1 year ago • 13 comments

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

Reno0vacio avatar Oct 08 '23 09:10 Reno0vacio

I have the same issue

Mara-Li avatar Nov 03 '23 14:11 Mara-Li

When I first installed the plugin, I also noticed that none of the pre-existing rules worked.

But try the following steps:

  1. Type placeholder into your document
  2. Put the cursor somewhere within the word "placeholder"
  3. Run the command “Add Rule for this Environment”.
  4. Type "**" in the "Characters" field.
  5. 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 avatar Nov 16 '23 14:11 vishae

@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 avatar Nov 16 '23 14:11 Reno0vacio

@Reno0vacio For the "", did you add the other symbols to your rule?

Example. image

For the [] and [[]], you need rules that points to "formatting_formatting-link_hmd-barelink_link" and "formatting-link_formatting-link-start" environments respectively.

image image

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 avatar Nov 21 '23 16:11 vishae

@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.

TamingTheMammoth avatar Dec 08 '23 16:12 TamingTheMammoth

Will lvoe a sharing file!

Mara-Li avatar Dec 08 '23 16:12 Mara-Li

@TamingTheMammoth sure data.json

vishae avatar Dec 09 '23 18:12 vishae

This is really helpful, thx :D

Homoe-hs avatar Mar 05 '24 15:03 Homoe-hs

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.

notuntoward avatar Mar 28 '24 22:03 notuntoward

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?

Sprocketer avatar Apr 11 '24 17:04 Sprocketer

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:

  1. Go to the document in Obsidian with the ** ** or " " or whatever you want to tab out of
  2. Place your cursor within the ** ** or " " or whatever
  3. Activate Command Palette (default hotkey is Cmd/Win+P)
  4. Find the Tabout command, "Add Rule for this Environment" and click on it
  5. In the "Characters" field, type in ** or " or ) or whatever closing character you want
  6. 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: image

Clicking "Edit" will show you details about the rules: image

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 avatar Apr 12 '24 01:04 vishae

@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

Sprocketer avatar Apr 12 '24 09:04 Sprocketer

Thanks, @vishae, for the meticulous tips.

notuntoward avatar Apr 12 '24 16:04 notuntoward