mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
(Running pre-commit) Remove trailing whitespace.
This commit is contained in:
parent
9ff654d41d
commit
e7aebe69bf
@ -50,7 +50,7 @@ function j
|
|||||||
case '*'
|
case '*'
|
||||||
set -l output (autojump $argv)
|
set -l output (autojump $argv)
|
||||||
# Check for . and attempt a regular cd
|
# Check for . and attempt a regular cd
|
||||||
if [ $output = "." ]
|
if [ $output = "." ]
|
||||||
cd $argv
|
cd $argv
|
||||||
else
|
else
|
||||||
if test -d "$output"
|
if test -d "$output"
|
||||||
|
@ -2,7 +2,7 @@ local AUTOJUMP_DIR = debug.getinfo(1, "S").source:match[[^@?(.*[\/])[^\/]-$]] ..
|
|||||||
local AUTOJUMP_BIN_DIR = AUTOJUMP_DIR .. "\\bin"
|
local AUTOJUMP_BIN_DIR = AUTOJUMP_DIR .. "\\bin"
|
||||||
local AUTOJUMP_BIN = (AUTOJUMP_BIN_DIR or clink.get_env("LOCALAPPDATA") .. "\\autojump\\bin") .. "\\autojump"
|
local AUTOJUMP_BIN = (AUTOJUMP_BIN_DIR or clink.get_env("LOCALAPPDATA") .. "\\autojump\\bin") .. "\\autojump"
|
||||||
|
|
||||||
function autojump_add_to_database()
|
function autojump_add_to_database()
|
||||||
os.execute("python " .. "\"" .. AUTOJUMP_BIN .. "\"" .. " --add " .. "\"" .. clink.get_cwd() .. "\"" .. " 2> " .. clink.get_env("TEMP") .. "\\autojump_error.txt")
|
os.execute("python " .. "\"" .. AUTOJUMP_BIN .. "\"" .. " --add " .. "\"" .. clink.get_cwd() .. "\"" .. " 2> " .. clink.get_env("TEMP") .. "\\autojump_error.txt")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -12,7 +12,7 @@ function autojump_completion(word)
|
|||||||
for line in io.popen("python " .. "\"" .. AUTOJUMP_BIN .. "\"" .. " --complete " .. word):lines() do
|
for line in io.popen("python " .. "\"" .. AUTOJUMP_BIN .. "\"" .. " --complete " .. word):lines() do
|
||||||
clink.add_match(line)
|
clink.add_match(line)
|
||||||
end
|
end
|
||||||
return {}
|
return {}
|
||||||
end
|
end
|
||||||
|
|
||||||
local autojump_parser = clink.arg.new_parser()
|
local autojump_parser = clink.arg.new_parser()
|
||||||
|
Loading…
Reference in New Issue
Block a user