 Hey everybody welcome back to the channel today. I'm going to be talking about them wiki now for those of you who have actually Seen my very first video and my first video. I mean the one that wasn't just a podcast That video was on a program called Zim wiki now to this to this day. I still use Zim wiki every single day It's always on workspace number one or tag number one on my second monitor right alongside to doest Those are the two things that are always on that tag and I use it every single day I do it for journaling. I do it for note taking I outline all of my writing there When I decided to make notes for a video, which is relatively not often As you can tell by the unorganized method of these videos you know, I use Zim wiki for all those things and it's become such a huge part of my workflow and I Just like it so much. I wish that it had syncing capabilities I would because I would love to be able to take some notes and do things on my phone I'd love to be able to uninstall Joplin. So I didn't have to Because I only reason I use Joplin is because it has a syncing capability and I can take notes on my phone and sync things It's the easiest way to get links from my phone to my computer So it's my note-taking system is a mess I'm not gonna fix that today unfortunately because I'm actually looking at something that's less syncable than Sim wiki is actually I'm at least I believe so. I'm gonna take a look at them wiki. So Then wiki is a terminal based Personal database system, I think that's how they describe it really it's to go through and take notes and Create outlines and things like that. It supports them wiki syntax mount markdown The other kind of markdown that I don't know that anybody you actually just make probably somebody out there does use it But most people just use regular markdown but by default it supports Vim wiki syntax and It's something that you have to learn it's a little bit different now the syntax between Vim wiki and Zim wiki. I'm gonna mess those names up a lot in this video They're very similar So if you've used Zim wiki or if you've used Vim wiki and you switch between them It should be fairly easy to figure out how to go about, you know, creating different types of syntax and formatting and stuff now obviously they're a little bit different because one's a gooey one's a toey, but Those differences are well documented. So today. Anyways, I'm gonna take a look at them wiki. Let's go ahead and jump in Now we're gonna start off here in terminal now This is alacrity for those of you who know I've switched to alacrity full-time as I said I was going to It has been an interesting Journey so far. I'll make a video on that sometime in a month or so when I've had some time to actually get my thoughts around it But that's not the topic of today's video. So Matt get on with it So in order to get into them with you had to be in Vim now I'm gonna be using Neo Vim and whenever you see in my videos I just type V. It's because I have an alias set to really when I type V what it's doing is and then It's the same thing. So I just type V because I'm lazy and it's easier that way so In order to get into Vim wiki, like I said, you have to be in Vim or Neo Vim and you have to have it installed So I'm going to go ahead and show you what it looks like to install it So I use Vim plug and if you don't know how to use them plug I believe I have a video on how to install them plugins. So Let me actually see if I can go through and Actually We'll go to this and go to them.config new and then plugins and plugins that been and then this is the one that you need right here Plug them wiki slash them weekly them wiki in single quotes and you can install it using any plug and manager bundle then plug Any of the other ones I mean there's like five or six them plug and managers You don't even need a plug-in managers. Technically you could just install it Some other way. I've never actually done a manual Vim plug-in install before but you could do it If you know how to do it, but anyways, that's how you install and you just do run plug Install and it will go through and install all the plugins and make sure they're all installed and updated And then once you've done that if you want to get into them wiki You can get into them wiki from any page within them So you can have a file open you can you can be like where I was before and just on in start This is what you call startify. I can't remember what it's called I think this is a startify plugin, but you can be anywhere in Vim. It doesn't matter All you have to do is hit leader ww now your leader key is almost Certainly going to be backslash now. I have a huge problem when it comes to figure out which one's backslash Which one's for slash backslash is the one that's under your back space key The one with pipes and below on the top so For those of you who are hollanders like I am and everything's backward and forward and whatever The backslash one is the one above the enter key below the space the backspace key So you want to hit that one and then ww now for me? I've changed my leader key to space so I do space WW and that takes me into Vim wiki Now there's just tons of things that you can do with them wiki So the first thing you probably will learn how to do is once you're in insert mode You can create a link and to do to create a link You do double brackets. Okay. Now if you have Vim surround Installed it will actually close those brackets for you If not, you'll actually have to close them yourselves, which is you know a travesty. I mean obviously that's way too much work So you create double brackets and then you can just type in the text of the link So the name of the link so I'm just gonna do this is a link now you can also go through and add a Like an alias or a description for that link so The name of the link is going to be this is a link if I do a pipe and do a link and then Hit get out of insert mode and then unhighlight that Line or move off in that line. It'll actually say link, but the name of the link is still this is a link Okay, so that's how you create a link. That's very simple now If you've used them wiki before you'll know that in order to create a link with multiple words You have to surround it and double brackets in the hit control R So in many ways, this is easier because this one it doesn't matter how many words you have within the brackets It's always going to be a link and you don't have to do any fancy Keyboard bindings so once you've created a link and you're out of insert mode you hit enter to follow that link so If you're in a link and you've or you follow the link in order to get back to the page You're on before you want to hit backspace and that takes you back to the page. You were on before now There are other key bindings that you should probably know when it comes to link Let's say we're on this Link right here if we do shift and tab it will actually jump to the next tab or the next shift and tab It'll jump to the next link. Excuse me and This is good for if you let's say you have a document of you know a hundred different links and You just want and there's stuff in between them and say there's I don't know Let's say there's a list in between these so if we do insert and then Astros this is a list. This is more of a list. This is a List point whatever and We're on this link here if we do shift tab It'll actually skip the stuff in the middle and go to the next link And it's really helpful if you have a whole bunch of stuff in Between links or if you have a whole large document or whatever so you can also go through and I believe Use tabs so tab will actually go through them as well So shift tab goes previous to the previous link tab goes to the next link. I again I do everything backwards now There's another thing you can do with links so if you have Split set up to the point where you can actually go through and navigate between them And again, I believe I have a video somewhere saying how to do that if you hit control enter This actually didn't work did it. I must have a a key binding that messes with that somewhere So what that should do and probably will do it for you if you hit control enter But it should do is open that link in a vertical split Why it doesn't do that for me. I'm assuming it's because I have some Keybinding that is Conflicting with that. I'm not actually sure what it would be Mmm, so that's something I'll have to investigate off-camera, but If for most people if you hit shift enter or control enter, you'll enter some kind of split now shift enter I believe creates a horizontal split control enter creates a vertical split Like I said, why that's not working for me. I'm not sure let me try Shift enter nope shift enter didn't work either That is really weird. I'm not sure why that's not working for me Like it's probably going to have something to do with a conflicting key binding. All right, so that's the links The next thing we should talk about is the regular syntax. Now, like I said, then wiki uses Kind of a modified version of markdowns, so it's not exactly the same so and let's just go ahead and follow this link here and we're going to a new page and If you want to create a bulleted List you get into insert mode and do asterisks This is a list and then it will continue creating asterisks for you until you press enter And then it will obviously go on just kind of just like you would see in a word processor or something so This is also a list so That's how you do bulleted lists. You can also do numbered lists by doing one list item one list item To and so on now That's pretty similar to what you'll find in markdown. I believe that's exactly the same actually, but we're Vim Syntax action or Vim wiki syntax actually differs for sure is how you create headers So in regular markdown you use the pound sign. So this would be a header one And I misspell something there, but it doesn't matter. That's not the way you do it in in them wiki That just creates a comment or something. I'm not exactly sure what it does I believe it creates a comment or creates an indent or something. I'm not actually sure but headers are done done like this. So this is a header or just an h1 and you end it with a Equals if you want to do an h2. It's two equals. This is h2 Equals equals and then three. This is h3 Three and of course I didn't put an extra equals there So that is how you do headers here Like I said, that is different to what you would find in regular markdown Now you can go through and I will leave a link to the github page for Vim wiki in the video description It has all this stuff that I'm talking about you can go through and in your In it that Vim file or your Vim RC file put a couple lines. It will allow you to use Regular old markdown if you're familiar with markdown and You would rather use that than the Vim version of markdown. You can easily change it Now I'm actually more familiar with this because this is exactly how Zim wiki works but at least in terms of syntax the linking is a little bit different like I said because it It uses pluses and stuff creating links with one word and then you have different brackets and The control R for multiple word links. It's a little there a little weird But I digress so I'm always just going to compare these to the Zim wiki because that's pretty much what this is Zim wiki and then we're very very similar. So That's basically the syntax that you have to know now if you want to know more syntax You can always go through and do colon H and then wiki and then syntax and then that will open up a Split with a whole bunch of options for Vim wiki and the syntax Now It will allow you to go through and show you how to do bold text italics text bold italics text now those will only work if your terminal has a Font set for those things. So for example, let me close this If I wanted to do bold text I would have to do asterisk bold I Can't type for the damn today text and then end with asterisk and then it will actually change that to the Font you you have set as your bold terminal text if your terminal doesn't have a bold terminal text set or If you're using termite termite, you usually only set one font Usually that's like a font font family. So if you're using something like JetBrains mono, I'm not actually sure that that has a bold version And there's many fonts that don't have bold bold versions. They don't have italic versions. They're just one Font, you know, they're not like a boot to mono or whatever that has like 30 different variations or no, no has like I Don't know a hundred different variations because it comes when you know different language packs and stuff. So Your use on bold and italics, let me do italics May differ because your font that you're using in your terminal may not have that support. So That is just something to keep in mind I'm losing my voice. So you'll have to forgive me so That's the basic markup now there there are some other Keybindings that we should probably go over. So we talked about shift enter and control enter those don't work for me for some reason it's possible that I'd have to go through and Define those manually. I'm not sure but you can find out More key bindings by doing colon H oops, I actually got to be in the Right workspace here to do this. So colon H them wiki and then I believe it's key mappings keep on it It's just mappings mappings You know, and I didn't go through and zoom any of the stuff in so you probably haven't seen the thing of this I do apologize for that. So they're here along the bottom. You'll see them wiki dash mappings and that will again go through and Open up a split and it'll tell you several global mappings that it has That will work outside of them wiki. So it talks about leader ww. So if these are the things that are going to Open up them wiki that when it's when it's closed So this you can also go through and create a new index file by using I believe w So leader wt will open the default wiki index in a new tab So I believe actually let's go through and see if that will work for me. I don't I don't know so if I if I Get out of this here and I go through and Open up them again and do leader wt Yeah, that will that just opens up in a new tab, which is good So and I don't actually have set up key bindings to go back and forth between the tabs Yeah, that is a huge Mistake in terms of my new vim config. That's something I'm gonna have to fix that. I didn't even know I don't use tabs at all And my I didn't even realize I didn't have a set up So anyways that would open up in a new tab leader ws will Select an open a wiki index file. So if you have multiple indexes So basically an index is where a whole wiki is going to be Stored and you can have multiple ones. You can also delete with leader wd But that deletes the wiki file that you're in Leader wr will rename the wiki file that you're in so by default. I believe it's the Index is called index wiki. I believe so if I actually do leader what did I say leader wr and Even you would ask you say yes, and I'm gonna just name this main that wiki and then They continue so now it's that main that wiki that wiki. So you don't actually have to add the dot wiki I didn't even know that part. So you can also rename it that way if you have multiple indexes, which you know More organized you are the more likely you are to have multiple indexes because that will allow you to create one for school Allow you to create one for you know work or whatever and they don't have to be combined Now you could obviously go through and combine them if you wanted to Like for zen wiki, I have multiple notebooks, but I only ever really use one. I just create, you know top-level links for all the separate things that I need so you know writing scripts whatever and Then everything is below those organized as they are. That's probably what I would do in them wiki But if you're a more organized person you could go through and change, you know between different indexes That way, you know, they're not mixed together. So That is just a very brief look at them wiki. It's more powerful than what I've gone through and shown you There are tons of different things you can do with it There are different ways of interacting with it like I said you can use markdown if you prefer markdown There are different ways you can go through and change those key bindings that I showed you all that stuff will be in the Link in the video description where the the github page is what I'm the word. I'm looking for good Lord Anyways, if you want to go through and change the stuff or read more about it You can get to that link in the video description Make sure you follow us on Twitter at the Linux cast on Facebook at the Linux cast You can also support us on patreon at patreon.com slash Linux cast. I'd like to go ahead and so thank our current patrons Devon Zach Marcus American camp. Thank is a brand new one. So welcome Zach. Thanks everybody for supporting us Thanks everybody for watching. I'll see you next time