aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2016-07-21 17:40:58 -0400
committerTeddy Wing2016-07-21 17:40:58 -0400
commitf9d330b923322c17d2fe41647c1bf71e752aff30 (patch)
treed8a256e78283954c6d5bc5cec09137899ca2d5aa
parent591d2a26ed80364c4c1b22727ce54c2e2eccaed7 (diff)
downloadqcd-f9d330b923322c17d2fe41647c1bf71e752aff30.tar.bz2
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.
-rw-r--r--new interface.txt30
1 files changed, 30 insertions, 0 deletions
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?