☰

Hot

πŸ”₯ A hot reloader for the Browser.

이 슀크립트λ₯Ό μ„€μΉ˜ν•˜λ €λ©΄ Tampermonkey, Greasemonkey λ˜λŠ” Violentmonkey와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

이 슀크립트λ₯Ό μ„€μΉ˜ν•˜λ €λ©΄ Tampermonkey λ˜λŠ” Violentmonkey와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 슀크립트λ₯Ό μ„€μΉ˜ν•˜λ €λ©΄ Tampermonkey λ˜λŠ” Userscripts와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 슀크립트λ₯Ό μ„€μΉ˜ν•˜λ €λ©΄ Tampermonkey와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 슀크립트λ₯Ό μ„€μΉ˜ν•˜λ €λ©΄ μœ μ € 슀크립트 κ΄€λ¦¬μž ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

(이미 μœ μ € 슀크립트 κ΄€λ¦¬μžκ°€ μ„€μΉ˜λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. μ„€μΉ˜λ₯Ό μ§„ν–‰ν•©λ‹ˆλ‹€!)

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ Stylus와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ Stylus와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ Stylus와 같은 ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ μœ μ € μŠ€νƒ€μΌ κ΄€λ¦¬μž ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ μœ μ € μŠ€νƒ€μΌ κ΄€λ¦¬μž ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

이 μŠ€νƒ€μΌμ„ μ„€μΉ˜ν•˜λ €λ©΄ μœ μ € μŠ€νƒ€μΌ κ΄€λ¦¬μž ν™•μž₯ ν”„λ‘œκ·Έλž¨μ΄ ν•„μš”ν•©λ‹ˆλ‹€.

(이미 μœ μ € μŠ€νƒ€μΌ κ΄€λ¦¬μžκ°€ μ„€μΉ˜λ˜μ–΄ μžˆμŠ΅λ‹ˆλ‹€. μ„€μΉ˜λ₯Ό μ§„ν–‰ν•©λ‹ˆλ‹€!)

μž‘μ„±μž
sachinsenal0x64
일일 μ„€μΉ˜ 수
0
총 μ„€μΉ˜ 수
16
평점
0 0 0
버전
1.0
생성일
2024-04-25
갱신일
2024-04-25
크기
735λ°”μ΄νŠΈ
λΌμ΄μ„ μŠ€
MIT
적용 μ‚¬μ΄νŠΈ

Hot

Hot

πŸ”₯ A hot reloader that works with any programming language.


πŸ’• Community

🍻 Join the community: Discord


✨ Features

  • Zero Dependencies
  • Highly Customizable
  • Multiple Languages & Unittest Reloader on the fly
  • Start | Stop | Silent | Real Time Debug | Buffer Open / Close Reload on Save
  • Userscript for the Browser.
  • Custom Healthchecker
  • Lualine (Status Bar) Plugin


πŸ“¦ Installation

[!NOTE] Install the plugin with your preferred package manager.

πŸ’€ lazy.nvim

hot.nvim ```lua -- Enable Current directory vim.opt.autochdir == true, { 'sachinsenal0x64/hot.nvim', config = function() local opts = require('hot.params').opts -- Update the Lualine Status Reloader = opts.tweaks.default Reloader = 'πŸ’€' Pattern = opts.tweaks.patterns Pattern = { 'main.py', 'main.go' } opts.tweaks.start = 'πŸš€' opts.tweaks.stop = 'πŸ’€' opts.tweaks.test = 'πŸ§ͺ' opts.tweaks.test_done = 'πŸ§ͺ.βœ…' opts.tweaks.test_fail = 'πŸ§ͺ.❌' -- If the 'main.*' file doesn't exist, it will fall back to 'index.*' opts.tweaks.custom_file = 'index' -- Add Languages opts.set.languages.python = { cmd = 'python3', desc = 'Run Python file asynchronously', kill_desc = 'Kill the running Python file', emoji = '🐍', test = 'python -m unittest -v', ext = { '.py' }, } opts.set.languages.go = { cmd = 'go run', desc = 'Run Go file asynchronously', kill_desc = 'Kill the running Go file', emoji = '🐹', test = 'go test', ext = { '.go' }, } -- Thot Health Check vim.api.nvim_set_keymap('n', 'ho', 'lua require("thot").check()', { noremap = true, silent = true }) -- Keybinds -- Start vim.api.nvim_set_keymap('n', '', 'lua require("hot").restart()', { noremap = true, silent = true }) -- Silent vim.api.nvim_set_keymap('n', '', 'lua require("hot").silent()', { noremap = true, silent = true }) -- Stop vim.api.nvim_set_keymap('n', '', 'lua require("hot").stop()', { noremap = true, silent = true }) -- Test vim.api.nvim_set_keymap('n', '', 'lua require("hot").test_restart()', { noremap = true, silent = true }) -- Close Buffer vim.api.nvim_set_keymap('n', '', 'lua require("hot").close_output_buffer()', { noremap = true, silent = true }) -- Open Buffer vim.api.nvim_set_keymap('n', '', 'lua require("hot").open_output_buffer()', { noremap = true, silent = true }) -- Auto Reload on Save local save_group = vim.api.nvim_create_augroup('save_mapping', { clear = true }) vim.api.nvim_create_autocmd('BufWritePost', { desc = 'Reloader', group = save_group, pattern = Pattern, callback = function() require('hot').silent() end, }) end, }, ```

⚑ lualine.nvim

status bar ```lua local hot = { 'Reloader', }, sections = { lualine_b = { hot, } }, ```

🐡 violentmonkey

userscript for browser live reloading
- Get The Script : https://greasyfork.org/en/scripts/493413-hot - You can add as many URLs as you want. For example: `// @match *://*.localhost:8080/*` ```js // ==UserScript== // @name Hot // @namespace https://github.com/sachinsenal0x64/hot.nvim // @version 1.0 // @description πŸ”₯ A hot reloader for the Browser. // @author sachinsenal0x64 // @match *://*.localhost:8086/* // @match *://*.atom.com/* // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; // Create a meta tag for auto-refresh var metaTag = document.createElement('meta'); metaTag.setAttribute('http-equiv', 'refresh'); metaTag.setAttribute('content', '5'); // Refresh every 5 seconds // Find the element and append the meta tag to it var head = document.querySelector('head'); head.appendChild(metaTag); })(); ``` πŸ† Now you're ready to go! Hooray!


πŸ«‚ Contributing

  • Feel free to send PR's regarding spelling mistakes, incorrect grammar etc.