Jumat, 30 Mei 2025

How I Run JavaScript in VS Code

How I Run JavaScript in VS Code

In one of my earlier articles, I showed how you can preview HTML files inside Visual Studio Code. That setup worked well for testing static pages, but what if you want to go beyond markup and bring interactivity into the mix?

With JavaScript being the backbone of the modern web and countless developers now diving into frameworks like React, Vue, and Svelte, being able to run JavaScript code directly inside VS Code becomes almost essential.

Running JavaScript in the editor helps you avoid constant context-switching, reduces distractions, and gives you immediate feedback when debugging.

There are two approaches here:

  • Running JavaScript inside VS Code using Node.js: most efficient and editor-native approach.
  • Run it in a browser or using extensions: handy for quick tests or visual feedback.

Let's see about using them.

Understanding the role of Node.js

JavaScript was originally designed to run inside browsers, which come with their own JavaScript engines (like V8 in Chrome).

Node.js takes that same V8 engine and brings it to your local machine. This lets you run JavaScript outside the browser, directly from the command line or terminal.

It’s particularly useful for backend work, automation scripts, or just quick testing without the overhead of an HTML shell.

If you're unsure whether Node.js is already installed on your system, open a terminal and type:

node -v

If you see a version number, you’re all set. If not, you’ll need to download Node.js and follow the installation instructions for your operating system.

We have covered node installation on Ubuntu.

Install Node.js and npm on Ubuntu Linux [Free Cheat Sheet]
Node.js and npm can be easily installed using the Ubuntu repository or the NodeSource repository. Learn both ways of installing Node.js on Ubuntu Linux.
How I Run JavaScript in VS Code

Set up a JavaScript project

Once everything’s installed, open VS Code and create a new folder for your project. Inside it, launch the terminal (Ctrl + ~ or Terminal > New Terminal) and run npm init -y.

This initializes a basic project and creates a package.json file, which will be useful for managing your scripts and dependencies later.

How I Run JavaScript in VS Code

With the environment ready, create a new file named app.js and add a bit of JavaScript, for example:

console.log("Hello, VS Code!");

To run it, simply type node app.js in the terminal.

How I Run JavaScript in VS Code

The output will appear immediately in the console, confirming that Node is executing your file properly.

Add a custom script for simpler runs

To make things smoother, especially as your project grows, it’s a good idea to define a custom script in your package.json file. Open that file and find the "scripts" section, then add:

"start": "node app.js"
How I Run JavaScript in VS Code

This allows you to run your script just by typing npm start, instead of repeating the filename every time.

How I Run JavaScript in VS Code

Optional: Using the Code Runner extension

How I Run JavaScript in VS Code

If you prefer a quick way to execute small snippets without setting up a project, Code Runner can help. It’s a lightweight VS Code extension that runs code in a sandboxed output window.

To get started:

  • Open the Extensions tab in VS Code.
  • Search for “Code Runner” and install it.
  • Open a .js file, write some code, right-click, and select “Run Code.”
How I Run JavaScript in VS Code

For example, a file like example.js with:

console.log("Hello from Code Runner!");

It will output directly to VS Code’s "Output" tab.

How I Run JavaScript in VS Code

The main limitation here is that it doesn’t use the integrated terminal like we used above, which can restrict input/output behavior for more complex scripts.

Wrapping up

With Node.js set up inside VS Code, running JavaScript becomes a seamless part of your workflow, no browser tabs or external tools required.

Whether you're testing a quick function or building out a larger project, using the terminal and custom npm scripts keeps things fast and distraction-free.

Extensions like Code Runner can help for quick one-off tests, but for anything serious, sticking to the Node-powered method inside VS Code gives you more control, better error output, and a real development feel.

Once this setup becomes second nature, jumping into frameworks like React or Express will feel a lot more natural too.

Now that you’ve got the tools, go ahead, experiment, break stuff, debug, and build.



from It's FOSS https://ift.tt/cPXikv9
via IFTTT

Rabu, 28 Mei 2025

FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

Important thing first. Ubuntu 20.04 LTS version will be reaching its end of life on 31st May. It was released in April 2020 and had a standard support of five years.

Please check your Ubuntu version and if you are using 20.04, you can:

  • Do a fresh installation of Ubuntu 24.04 LTS to get the latest packages.
  • Upgrade to Ubuntu 22.04 LTS from your existing 20.04 installation, keeping your files intact.
  • Opt for Ubuntu Pro, which will ensure you get essential security patches until 2030 but no new software.
Ubuntu 20.04 LTS is Reaching End of Life — Here are Your Options
Upgrade or sign-up for extended support before it is too late!
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

Time to plan your update.

💬 Let's see what else you get in this edition

  • A new Linux kernel release.
  • File permission in Linux.
  • GNU Taler payment system being approved for Swiss use.
  • And other Linux news, tips, and, of course, memes!
  • This edition of FOSS Weekly is supported by PikaPods.

❇️ PikaPods: Enjoy Self-hosting Hassle-free

PikaPods allows you to quickly deploy your favorite open source software. All future updates are handled automatically by PikaPods while you enjoy using the software. PikaPods also share revenue with the original developers of the software.

You get a $5 free credit to try it out and see if you can rely on PikaPods.

PikaPods - Instant Open Source App Hosting
Run the finest Open Source web apps from $1.20/month, fully managed, no tracking, no ads, full privacy. Self-hosting was never this convenient.
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

📰 Linux and Open Source News

Rhino Linux's new UBXI KDE Desktop doesn't disappoint.

Hands-On with Rhino Linux’s New UBXI KDE 6 Desktop
Rhino Linux’s first UBXI port is here!
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

🧠 What We’re Thinking About

Carmen from Mission Libre has started a petition to get Qualcomm to release fully-free drivers for their in-production chipsets. If the petition is signed by 5,000 people, a hardcopy of the petition and signatures will be mailed to Qualcomm's head office. We can get 5,000 signatures, can't we?

Home | Tell Qualcomm: Publish Free Drivers for Modern Wi-Fi Chipsets!
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

🧮 Linux Tips, Tutorials and More

Looking for some note taking apps suggestion? We have an extensive list.

Top 16 Best Note Taking Apps For Linux [2025]
Plenty of amazing note-taking apps for Linux. Here’s what we recommend you to check out.
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

Why should you opt for It's FOSS Plus membership:

✅ Ad-free reading experience
✅ Badges in the comment section and forum
✅ Supporting creation of educational Linux materials

Join It's FOSS Plus

👷 Homelab and Maker's Corner

While it is a proprietary piece of hardware, Flexbar can be a nice addition to your Linux setup.

Miss Apple’s Touch Bar? Flexbar Brings This Experience to Linux
While Apple has discontinued the Touch Bar, Linux users can now enjoy the same experience with Flexbar.
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

Also, learn a thing or two about MCP servers, the latest buzzword in the (AI) tech world.

✨ Apps Highlight

If you ever wanted to run an operating system inside your browser, then Puter is the solution for you. It is open source and can be self-hosted as well.

Puter is a Complete, Fully Functional OS that Runs in Your Web Browser
Run an operating system straight from your browser.
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

An It's FOSS reader created an FFmpeg AAC Audio Encoder Plugin for DaVinci Resolve. This will help you get effortless AAC audio encoding on Linux if you use DaVinci Resolve video editor.

📽️ Videos I am Creating for You

I tried Microsoft's new terminal editor on Linux! I hate to admit it but I liked what I saw here. This is an excellent approach. I wonder why Linux didn't have something like this before. See it in action 👇

🧩 Quiz Time

Can you identify all the GitHub alternatives in this puzzle?

GitHub Alternatives: Puzzle
Solve this puzzle by figuring out the alternatives to GitHub!
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

💡 Quick Handy Tip

In Xfce, you can use the panel item "Directory Menu" to get quick access to files from anywhere. This is like the Places extension in GNOME, but better.

In the configuration menu for it, provide the file extension in the following format *.txt;*.jsonc as shown in the screenshot above to access the files quickly. Clicking on those files opens it in the default app.

🤣 Meme of the Week

The ricing never stops! 👨‍💻

FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

🗓️ Tech Trivia

On May 27, 1959, MIT retired the Whirlwind computer, a groundbreaking machine famous for pioneering real-time computing and magnetic core memory.

🧑‍🤝‍🧑 FOSSverse Corner

ProFOSSer Sheila is having an issue with MX Linux, can you help?

MX Linux / XFCE missing desktop background image!
I am at a loss as to how to fix a new issue on MX-Linux Xfce that started about 30 min ago. I was working on things and my windows are always only expanded far enough right so that I can still see my Conky (top-right on desktop). I clicked outside the window on Conky and it disappeared. So did the background image. Later, switching workspaces, I found the same was true on all of them and when I right clicked on the desktop, no context menu. I went in to the desktop settings and tried to apply a…
FOSS Weekly #25.22: Microsoft's Vim Alternative, Kernel 6.15, UBXI Desktop, End of Ubuntu 20.04 and More

❤️ With love

Share it with your Linux-using friends and encourage them to subscribe (hint: it's here).

Share the articles in Linux Subreddits and community forums.

Follow us on Google News and stay updated in your News feed.

Opt for It's FOSS Plus membership and support us 🙏

Enjoy FOSS 😄



from It's FOSS https://ift.tt/VdBpRwo
via IFTTT

Selasa, 27 Mei 2025

Installing VS Code on Arch Linux Takes Some Thinking

Installing VS Code on Arch Linux Takes Some Thinking

There are two main choices for getting VS Code on Arch Linux:

  • Install Code - OSS from Arch repositories
  • Install Microsoft's VS Code from AUR

I know. It's confusing. Let me clear the air for you.

VS Code is an open source project but the binaries Microsoft distributes are not open source. They have telemetry enabled in it.

Code - OSS is the actual open source version of VS Code.

Think of Code - OSS as Chromium browser and VS Code as Google Chrome (which is based on Chromium browser).

Another thing here is that some extensions will only work in VS Code, not in the de-Micorsoft Code - OSS.

This is why you should think it through if you want to use Microsoft's VS Code or its 100% open sourced version.

Let me show you the steps for both installation.

Method 1: Install Code - OSS

✅ Open source version of Microsoft VS Code
✅ Easy to install with a quick pacman command
❌ Some extensions may not work

This is simple. All you have to do is to ensure that your Arch system is updated:

pacman -Syu

And then install Code - OSS with:

pacman -S code

It cannot be simpler than this, can it?

As I mentioned earlier, you may find some extensions that do not work in the open source version of Code.

Also, I had noticed earlier that Ctrl+C - Ctrl+V was not working for copy paste. Instead, it was defaulted to Ctrl+Shift+C and Ctrl+Shift+V for reasons not known to me. I had not made any changes to key bindings or had opted for a Vim plugin.

Removing Code OSS

Removal is equally simple:

sudo pacman -R code

Method 2: Install the actual Microsoft's VS Code

✅ Popular Microsoft VS Code that is used by most people
✅ Access to all proprietary features and extensions in the marketplace
❌ Installation may take effort if you don't have an AUR helper

If you don't care too much about ethics, open source principles and just want to code without thinking it too much, go with VS Code.

There are a couple of VS Code offerings available in the AUR but the official one is this.

Before installing it, you should remove Code OSS

sudo pacman -R code

If you have an AUR helper like yay already installed, use it like this:

yay -S visual-studio-code-bin

Otherwise, install yay first and then use it to install the desired package.

Installing VS Code on Arch Linux Takes Some Thinking

Don't be deceived by the pretty looking screenshot above. I was using a different theme in VS Code.

Removal

You can use your AUR helper or the super reliable pacman command to remove Microsoft VS Code from Arch Linux.

sudo pacman -R visual-studio-code-bin

I let you enjoy your preferred version of VS Code on Arch Linux. Please feel free to use the comment section if you have questions or suggestions.



from It's FOSS https://ift.tt/6SUHEpc
via IFTTT

Senin, 26 Mei 2025

Better Than Man pages? These Tools Help You Understand Linux Commands

Better Than Man pages? These Tools Help You Understand Linux Commands

How do you get help in the Linux command line?

On Linux, there are man pages that come preloaded with any distribution. The man pages are basically help pages which you can access using the terminal.

You get an instruction manual when you purchase a new gadget, right? It is just like that.

If you want to know what a command does, just use the 'man' keyword followed by the command you would like to know about. While it may seem pretty straightforward, the user experience is a bit dull, as it is all a bunch of text without any decorations or any other features.

There are some man page alternatives that have tried to modernize the user experience, or give a specific focus to the man pages for particular users. Let me share my quick experience with them.

1. Qman

Qman is a modern manual page viewer with navigation, scrolling, hyperlink, and table of contents support.

It aims to be fast and offer a couple of features at the same time being a terminal-focused tool.

Better Than Man pages? These Tools Help You Understand Linux Commands
Qman terminal interface

Key Features:

  • Index page that displays all manual pages available on the system, sorted alphabetically and organized by section.
  • Hyperlinks to other manual pages, URLs and email addresses.
  • Table of Contents for each man pages
  • Incremental search for manual pages and free page text search.
  • Mouse support
  • Navigation history
  • On-line help
  • Fully configurable using an INI-style config file

Qman Command Working

Installation

This supports Arch Linux for easy installation using the following command:

yay -Syu qman

For other systems, you need to build it from source

2. TLDR

Love cheat sheets? So, you do not have to waste your time scrolling through a barrage of descriptions? That's what TLDR helps you with.

It gives short and actionable information for commands to follow.

Better Than Man pages? These Tools Help You Understand Linux Commands
TLDR working

Key Features:

  • Community-maintained help pages.
  • Simpler, more approachable complement to traditional man pages.
  • Help pages focused on practical examples
  • TL;DR stands for "Too Long; Didn't Read". It originated as Internet slang, where it is used to indicate that a long text (or parts of it) has been skipped as too lengthy.

Installation

🚧
You cannot have tldr and tealdeer installed at the same time.

If you need to install Snap for Ubuntu, here is the command to do that:

sudo snap install tldr

For Arch Linux and Fedora, the commands are (respectively):

sudo pacman -Syu tldr
sudo dnf install tldr

3. Tealdeer

If you want TLDR tool, but built on Rust, Tealdeer should be your pick. Simplified, example based and community-driven man pages.

Better Than Man pages? These Tools Help You Understand Linux Commands
Tealdeer working

I noticed an interesting thing about the project's name and I'll quote it here below from their GitHub page:

If you pronounce "tldr" in English, it sounds somewhat like "tealdeer". Hence the project name 😄

Installation

It is available on Debian, Arch Linux, and Fedora repos:

sudo apt install tealdeer
sudo pacman -Syu tealdeer
sudo dnf install tealdeer

There are static binary builds for Linux only. You can also install via cargo:

cargo install tealdeer

Once installed, run the command below to update the cache:

tldr --update

To get shell completion in bash:

cp completion/bash_tealdeer /usr/share/bash-completion/completions/tldr

4. Navi Cheat Sheet

If you favored a cheat sheet, and want an interactive UI to complement the same, Navi Cheat Sheet is the answer.

Navi Interactive Cheat Sheet

Key Features:

  • Browse through cheat sheets and execute commands.
  • Set up your own config file
  • Change colors
  • Can be either used as a command or as a shell widget (à la Ctrl-R).

Install

In Arch Linux and Fedora, use the commands below:

sudo pacman -Syu navi
sudo dnf install navi

You can also try using Homebrew:

brew install navi

Once installed, run navi. It will suggest a command to add a default set of cheat sheets. Run it:

navi repo add denisidoro/cheats

Add Default Set of Cheat Sheets in Navi

5. Cheat.sh

If your focus is only on Cheat sheets, and get the best of community-driven inputs for the same, Cheat.sh is the perfect terminal tool for you.

Cheat.sh Working using Local Shell Instance

Key Features:

  • Simple interface
  • Covers 56 programming languages, several DBMSes, and more than 1000 most important UNIX/Linux commands.
  • No installation needed, but can be installed for offline usage.
  • Has a convenient command line client, cht.sh
  • Can be used directly from code editors
  • Supports a special stealth mode where it can be used fully invisibly without ever touching a key and making sounds.

Installation

You can install it using Curl with the following commands:

curl cheat.sh/tar
curl cht.sh/curl
curl https://cheat.sh/rsync
curl https://cht.sh/tr

To install locally, first install rlwrap and most.

PATH_DIR="$HOME/<a-directory-that-is-in-PATH>"
mkdir -p "$PATH_DIR"
curl https://cht.sh/:cht.sh > "$PATH_DIR/cht.sh"
chmod +x "$PATH_DIR/cht.sh"

6. The MOST Pager

Alright, if you are like me, and probably not looking for anything fancy, but just a colorful man page, you can use the Most pager.

Better Than Man pages? These Tools Help You Understand Linux Commands
Most as Pager

MOST is a powerful paging program. Supports multiple windows and can scroll left and right. It keeps the same good-old man page look with added colors.

Install

sudo apt install most
sudo dnf install most
sudo pacman -Syu most

Once installed, edit ~/~.bashrc:

nano ~/.bashrc

To add the line:

export PAGER='most'

For the latest most versions, color may not appear by default. In that case, below line to ~/.bashrc.

export GROFF_NO_SGR=1

7. Yelp or GNOME Help

Considering you are using a distribution powered by GNOME desktop, you just need to search for the GNOME Help app from the menu. You can also access the same via the terminal using the command yelp.

Using GNOME Help (Yelp) to view man pages

Press CTRL to open the search bar and type the command that you want when using the terminal interface.

man:<command>
# For example
man:man

Or, if you are in a browser, go to the address bar (CTRL+L). Here, enter man:man. When asked to open the link in help, click on it.

Opening man page from a browser

Bonus: Use a terminal with built-in AI

AI is everywhere, even in your terminal. The proximity of AI in the tool lets you quickly use them.

There are a few terminals that come with built-in AI agents to help you get all sorts of help; from simple command suggestion to full-fledged deployment plans.

You may use them too if you are an AI aficionado. Warp is one such terminal which is not open source but hugely popular among modern Linux users.

Better Than Man pages? These Tools Help You Understand Linux Commands

Wrapping Up

While you have It's FOSS along with the traditional man pages to learn what most commands do on Linux, there are alternatives to man pages which could enhance your learning experience.

If you prefer a GUI, GNOME Help should be helpful or any similar equivalent pre-installed on your distribution. For terminal-based solutions, there are a couple you can try. Take a look at the feature set they offer, and install what you like the most.

What do you prefer the most? Let me know in the comments below!



from It's FOSS https://ift.tt/kR9dJBb
via IFTTT

Minggu, 25 Mei 2025

Guide to Using Plugins in Obsidian

Guide to Using Plugins in Obsidian

Obsidian has emerged as a powerful and flexible knowledge management tool, despite NOT being an open source product.

Using plugins is just one of the many tips that you can follow to get the most out of Obsidian.

However, there is a small catch when it comes to compatibility. If you have used several Obsidian-specific plugins, then your notes may not be fully compatible in other plain markdown editors.

In this article, we will take a look at Plugins in Obsidian, how you can install it, and also some essential plugins that can make your learning more effective.

But first, a quick heads-up: Obsidian offers two types of plugins:

  • Core Plugins: These are officially developed and maintained by the Obsidian team. While limited in number, they are stable and deeply integrated.
  • Community Plugins: Created by users in the Obsidian community, these plugins offer a wide variety of features, although they aren’t officially supported by the core team.
🚧
Note that some plugins may make your Markdown notes fully readable only in Obsidian. This can be a vendor lock in. Use plugins only according to your needs.

Using the core plugins

Core plugins are officially built by Obsidian. They will come pre-installed. So, naturally, that is the recommended method of installation when it comes to plugins.

Core plugins are displayed in Obsidian settings page. Click on the settings gear icon at the bottom of the Obsidian app window to go to the settings.

Guide to Using Plugins in Obsidian
Click on the Settings gear

In the settings, select Core Plugins to view the Core plugins.

Guide to Using Plugins in Obsidian
Select Core Plugins

Most of the core plugins are enabled when you install the Obsidian app. But some plugins will be disabled by default.

I have included a brief description under each plugin to know what the plugin does and enable/disable as needed.

Suggested Read 📖

13 Useful Tips on Organizing Notes Better With Obsidian
Utilize Obsidian knowledge tool more effectively with these helpful tips and tweaks.
Guide to Using Plugins in Obsidian

Using the community plugins

I’ve found that community plugins are one of the best ways to boost Obsidian’s capabilities. There’s a massive collection to choose from, and at the time of writing this, there are 2,430 community plugins available for installation.

These plugins are built by third-party developers and go through an initial review process before being listed.

However, since they have the same level of access as Obsidian itself, it’s important to be cautious. If privacy and security are essential for your work, I suggest doing a bit of homework before installing any plugin, just to be safe.

Disable the restricted mode

To protect you from unofficial plugins, Obsidian starts with a restricted mode, where the community plugins are disabled. To install community plugins, you need to disable the restricted mode first, just like the auto blocker in some Android phones to block app installations from unauthorized sources.

Go to the Obsidian settings and select the Community Plugins option. Here, click on the "Turn on community plugins" button.

Guide to Using Plugins in Obsidian
Turn on community plugins

This will disable the restricted mode. And, you are all set! 😄

Install community plugins

Once the restricted mode is disabled, you can browse for community plugins and get them installed.

Guide to Using Plugins in Obsidian
Click on the Browse button

Use the Browse button to go to the plugins page, as shown in the screenshot above. You will reach the plugins store, that lists 2000+ plugins.

Do not worry about the numbers, just search for what you need, or browse through some suggested options, just like I did.

Guide to Using Plugins in Obsidian
Plugins Store

When you have spotted a plugin that matches your need, click on it. Now, to install that plugin, use the Install button.

Guide to Using Plugins in Obsidian
Click on the Install button

Once installed, you can see two additional buttons called Enable and Uninstall. As the name suggests, they are for enabling a plugin or uninstalling a plugin.

Guide to Using Plugins in Obsidian
Enable/Uninstall a plugin

This can be done more efficiently from the Obsidian settings. For this, go to the Settings → Community plugins → Installed plugins. Here, use the toggle button to enable a plugin.

Guide to Using Plugins in Obsidian
Enable Plugins in Settings

This section lists all the installed community plugins. You can enable/disable, uninstall, access plugin settings, assign a keybinding, or donate to that particular plugin.

Manually install plugins

🚧
I do not recommend this method, since most of the plugins are available in Obsidian store and have gone through an initial review.

Even though not recommended, if you want to install a plugin, manually, for version compatibility or other personal reasons, make sure to source it from the official repositories or websites.

If it is on GitHub, go to the release page of the plugin GitHub repository and download main.js, manifest.json, and style.css files.

Guide to Using Plugins in Obsidian
Download Plugin files

Now, create a directory with the name of the project in the <Your-obsidian-vault>/.obsidian/plugins directory. Press CTRL+H to view hidden files.

Guide to Using Plugins in Obsidian
Paste plugin contents

In my case, I tried Templater. Next, I transfer the downloaded files to this project directory. Now, open Obsidian and go to the Settings → Community plugins and enable the new plugin.

Guide to Using Plugins in Obsidian
Enable manually installed plugin

Install beta version of plugins

This is not for regular users, but for those who want to be testers and reviewers of beta plugins. I usually do this to test interesting things or help with the development of plugins I believe in.

We are using the BRAT (Beta Reviewers Auto-Update Tool) to install and update beta versions of Obsidian plugins.

First, install the BRAT plugin from the Obsidian plugins store and enable it.

Guide to Using Plugins in Obsidian
Install BRAT Plugin

Now, go to the GitHub repository of the plugin you want to install the beta version of. Copy the URL of the repository.

Select the BRAT plugin from Settings → Community plugins and click on the “Add beta plugin” button.

Guide to Using Plugins in Obsidian
Click on the "Add beta plugin" button

Here, add the GitHub URL, select a version from the list, and click on the Add Plugin button.

Guide to Using Plugins in Obsidian
Add URL and select version

You can see that the plugin has been added with BRAT. Since we selected a specific version, it is shown as frozen and cannot be updated. Select Latest as version to get updates.

Guide to Using Plugins in Obsidian
Beta plugin added using BRAT

Update plugins

To update community plugins, go to Obsidian settings and select Community plugins.

Here, click on the Check for updates button.

Guide to Using Plugins in Obsidian

If there is an update available, it will notify you.

Guide to Using Plugins in Obsidian
There is an update available for one plugin.

Click on Update All to update all the plugins that have an update available. Or, scroll down and update individual plugins by clicking on the Update button.

Guide to Using Plugins in Obsidian

Move community plugins

You can copy selected or all plugins from your directory to another vault to avoid installing everything from scratch.

Go to the <your-obsidian-vault>/.obsidian/plugins directory. Now, copy directories of those plugins you want to use in another vault.

Copy those directories to your new plugin directory for your other vault (or the newer vault) <your-new-vault>/.obsidian/plugins directory.

If there is no plugins directory in the new vault, create one. Once you open the new vault, you will be asked to trust the plugins.

If it is you, who copied all the folders and no others are involved, click on the "Trust author and enable plugins" button.

Or you can use the "Browse Vault in restricted mode" and then enable the plugins by going to Settings → Community plugins → Turn on Community plugins → Enable plugins.

Guide to Using Plugins in Obsidian
Plugin security notification

In both cases, you don't have to install the plugin from scratch.

Don't forget to enable the plugins through Settings → Community plugins to start using them.

Remove a plugin

Removing a plugin is easy. Go to the community plugins in settings and click on the delete button (bin icon) adjacent to the plugin you want to remove.

Guide to Using Plugins in Obsidian
Remove a plugin

Or, if you just want to disable all community plugins, you can turn on the restricted mode. Click on the Turn on and reload button in community plugins settings.

Guide to Using Plugins in Obsidian
Turn on restricted mode

So, if you turn off the restricted mode, all the installed plugins will be enabled. Pretty easy, I know, right?

Another way to remove plugins is to delete specific folders in the plugins directory, but it is unnecessary unless you are testing something specific.

🚧
Don't use this method for everything since it is safer to do so from within Obsidian.

Go to the <your-obsiidian-vault>/.obsidian/plugins directory and remove the directory that has the name of the plugin you want to remove.

Now open Obsidian and you won't see that plugin. Voila!

Enjoy using Obsidian

I have shared many more Obsidian tips to improve your experience with this wonderful too.

13 Useful Tips on Organizing Notes Better With Obsidian
Utilize Obsidian knowledge tool more effectively with these helpful tips and tweaks.
Guide to Using Plugins in Obsidian

Plugin is just part of how you can go beyond the obvious and default Obsidian offering. I hope you found this tutorial helpful. Enjoy.



from It's FOSS https://ift.tt/0tyIuC9
via IFTTT