From f9d330b923322c17d2fe41647c1bf71e752aff30 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 21 Jul 2016 17:40:58 -0400 Subject: Add some ideas for what we want the new version to look like Instead of shortcuts being specified manually in the scripts, they should dynamically support on the fly adding, removing, and changing of shortcuts. This would allow for a lot more flexibility in the command's use, giving us the ability to create a temporary shortcut to a directory that we may only need for a few minutes or hours, at which point it can be deleted. --- new interface.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 new interface.txt diff --git a/new interface.txt b/new interface.txt new file mode 100644 index 0000000..93931cb --- /dev/null +++ b/new interface.txt @@ -0,0 +1,30 @@ +qcd SHORTCUT PATH + +qcd -a SHORTCUT PATH + +-a: add + So we can still do `qcd shortcut` to `cd` + + PATH expands to an absolute directory before saving + + +shortcut /Absolute/path/to/directory +shortcut /Absolute/path/to/directory +shortcut /Absolute/path/to/directory +shortcut /Absolute/path/to/directory +shortcut /Absolute/path/to/directory + + +Go to: + Search for shortcut, get column 2, cd to it + +Remove shortcut: + qcd -r SHORTCUT + + Search for shortcut, remove that line + --How to remove the line? + +Change shortcut: + qcd -c SHORTCUT PATH + + Use sed? -- cgit v1.2.3