์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ๋ธ๋์น ํ์ธ
- ๋ธ๋์น ์ญ์
- ์ฝ๋๋ธ๋ก
- ์ฝ๋๋ธ๋ญ
- ![rejected]
- markdown
- ๋งํฌ๋ค์ด
- branch ์์ฑ
- Git๋ช ๋ น์ด
- ๋ธ๋์น ์์ฑ
- branch ์ญ์
- branch ํ์ธ
Archives
- Today
- Total
DevLog
์ํ๋ ๋ ํฐ๋ฏธ๋ iterm์ผ๋ก ๋ณ๊ฒฝ ๋ณธ๋ฌธ
๐ง๐ป๐ป ๊ฐ๋ฐ๊ฐ๋ฐ/๊ธฐํ
์ํ๋ ๋ ํฐ๋ฏธ๋ iterm์ผ๋ก ๋ณ๊ฒฝ
Seungjae Lee 2021. 10. 31. 15:39-- Set this property to true to always open in a new window
property open_in_new_window : true
-- Handlers
on new_window()
tell application "iTerm" to create window with default profile
end new_window
on new_tab()
tell application "iTerm" to tell the first window to create tab with default profile
end new_tab
on call_forward()
tell application "iTerm" to activate
end call_forward
on is_running()
application "iTerm" is running
end is_running
on has_windows()
if not is_running() then return false
if windows of application "iTerm" is {} then return false
true
end has_windows
on send_text(custom_text)
tell application "iTerm" to tell the first window to tell current session to write text custom_text
end send_text
-- Main
on alfred_script(query)
if has_windows() then
if open_in_new_window then
new_window()
else
new_tab()
end if
else
-- If iTerm is not running and we tell it to create a new window, we get two
-- One from opening the application, and the other from the command
if is_running() then
new_window()
else
call_forward()
end if
end if
-- Make sure a window exists before we continue, or the write may fail
repeat until has_windows()
delay 0.01
end repeat
send_text(query)
call_forward()
end alfred_script
https://hjm79.top/alfred-4-%EC%B4%88%EA%B8%B0-%EC%84%A4%EC%A0%95/
alfred 4 ์ด๊ธฐ ์ค์ - ๋งฅ ํ์ ์ฑ - ์ํฌํ๋ก์ฐ ๋ง๋์ ๋ธ๋ก๊ทธ
๋งฅ ํ์ ์ฑ์ค์ ํ๋์ธ alfred 4 ์ด๊ธฐ ์ค์ ๋ถ๋ถ ์ ๋๋ค. File Search, Web Search, Clipboard, Snippets, terminal ๋ถ๋ถ ๋ฑ ๊ธฐ๋ณธ ์ค์ ์ ์ ์ด๋ดค์ต๋๋ค. ๋งฅ ํ์ ์ฑ์ธ ์ํ๋ ๋์ ๋๋ค.
hjm79.top
'๐ง๐ปโ๐ป ๊ฐ๋ฐ๊ฐ๋ฐ > ๊ธฐํ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
mac command line ์ญ์ (0) | 2021.10.18 |
---|---|
๋งํฌ๋ค์ด(Markdown) ์์ฑ๋ฒ (0) | 2021.06.27 |
๋งํฌ๋ค์ด(Markdown)๋ฌธ๋ฒ์ผ๋ก ์ฝ๋(Code) ์ฝ์ ๋ฒ (0) | 2021.06.26 |
์์๋ณด๊ธฐ ์ฌ์ด ์ฝ๋ ์์ฑ๋ฒ (0) | 2021.06.16 |
Google์๋ณด๋ค ํจ์จ์ ์ผ๋ก ์ฌ์ฉํ๊ธฐ์ํ 20 ๊ฐ์ง Google ๊ฒ์ ํ (0) | 2021.06.14 |
Comments