Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (4abccc30f38bcad99dc2cff1bf8fd67ea7a0f3a2)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Jaka Kranjc <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (4abccc30f38bcad99dc2cff1bf8fd67ea7a0f3a2)
  • Date: Sun, 15 Apr 2007 05:53:31 -0500

GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:

ChangeLog | 1 +
shell-term-fm/apparix/DEPENDS | 1 +
shell-term-fm/apparix/DETAILS | 20 ++++++++++++++++++++
shell-term-fm/apparix/HISTORY | 7 +++++++
shell-term-fm/apparix/INSTALL | 7 +++++++
shell-term-fm/apparix/apparix.sh | 24 ++++++++++++++++++++++++
shell-term-fm/apparix/apparix_completion | 27 +++++++++++++++++++++++++++
7 files changed, 87 insertions(+)

New commits:
commit 4abccc30f38bcad99dc2cff1bf8fd67ea7a0f3a2
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

apparix: new spell #10084

commit a9b48eefb2b25832e4b8018a6928e144c2032ee8
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>

apparix #10084

diff --git a/ChangeLog b/ChangeLog
index 8d4de2b..000bfaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
2007-04-15 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * shell-term-fm/apparix: allows fast filesystem navigation #10084
* net/ucspi-tcp: moved to z-rej #8026

2007-04-12 Eric Sandall <sandalle AT sourcemage.org>
diff --git a/shell-term-fm/apparix/DEPENDS b/shell-term-fm/apparix/DEPENDS
new file mode 100755
index 0000000..b9611bd
--- /dev/null
+++ b/shell-term-fm/apparix/DEPENDS
@@ -0,0 +1 @@
+optional_depends bash-completion "" "" "for bookmark and bookmark subdir
completion"
diff --git a/shell-term-fm/apparix/DETAILS b/shell-term-fm/apparix/DETAILS
new file mode 100755
index 0000000..0fba3f7
--- /dev/null
+++ b/shell-term-fm/apparix/DETAILS
@@ -0,0 +1,20 @@
+ SPELL=apparix
+ VERSION=06-314
+ SOURCE=$SPELL-$VERSION.tar.gz
+SOURCE_DIRECTORY=$SPELL-$VERSION
+ SOURCE_URL[0]=http://micans.org/apparix/src/$SOURCE
+
SOURCE_HASH=sha512:d40355f45595d5983f001b839b47ec6ceeb8a0c0c675d5302af2bdad55b5a9a9a52602d371e60e40bd2129fe860383ab14ae4fdbc751400299b5a21f3dd6a9a3
+ WEB_SITE=http://micans.org/apparix/
+ ENTERED=20051112
+ LICENSE[0]=GPL2
+ SHORT="allows fast filesystem navigation by bookmarking
directories and jumping"
+cat << EOF
+Apparix combines the properties of the cdargs utility and the CDPATH
+shell mechanism for fast navigation through the file system. It is
+especially useful for visiting and documenting both frequently and
+rarely used locations. Apparix enables you to attach marks to locations
+and jump to those locations by loading the mark. Marking, unmarking and
+jumping are simple operations that are performed in the current shell.
+By setting up convenient aliases for marking and jumping, the file system
+can be navigated in a fast and intuitive manner.
+EOF
diff --git a/shell-term-fm/apparix/HISTORY b/shell-term-fm/apparix/HISTORY
new file mode 100644
index 0000000..566b4c0
--- /dev/null
+++ b/shell-term-fm/apparix/HISTORY
@@ -0,0 +1,7 @@
+2007-04-15 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * DEPENDS: fixed syntax, added description
+ * DETAILS: updated spell to 06-314, fixed SHORT
+ * INSTALL: only install completion if dependency is met
+
+2005-11-12 Richard Johns <johnsr AT lincoln.ac.nz>
+ * DETAILS, DEPENDS, INSTALL: Created spell
diff --git a/shell-term-fm/apparix/INSTALL b/shell-term-fm/apparix/INSTALL
new file mode 100755
index 0000000..4fdbcaf
--- /dev/null
+++ b/shell-term-fm/apparix/INSTALL
@@ -0,0 +1,7 @@
+default_install &&
+mkdir -p $INSTALL_ROOT/etc/profile.d &&
+install -m 0644 $SCRIPT_DIRECTORY/apparix.sh $INSTALL_ROOT/etc/profile.d/ &&
+if is_depends_enabled $SPELL bash-completion; then
+ install -m 0644 $SCRIPT_DIRECTORY/apparix_completion
$INSTALL_ROOT/etc/bash_completion.d/
+fi
+
diff --git a/shell-term-fm/apparix/apparix.sh
b/shell-term-fm/apparix/apparix.sh
new file mode 100755
index 0000000..bad5476
--- /dev/null
+++ b/shell-term-fm/apparix/apparix.sh
@@ -0,0 +1,24 @@
+ function to () {
+ if test "$2"; then
+ cd "$(apparix "$1" "$2" || echo .)";
+ else
+ cd "$(apparix "$1" || echo .)";
+ fi
+ pwd
+ }
+ function bm () {
+ if test "$2"; then
+ apparix --add-mark "$1" "$2";
+ elif test "$1"; then
+ apparix --add-mark "$1";
+ else
+ apparix --add-mark;
+ fi
+ }
+ function portal () {
+ if test "$1"; then
+ apparix --add-portal "$1";
+ else
+ apparix --add-portal;
+ fi
+ }
diff --git a/shell-term-fm/apparix/apparix_completion
b/shell-term-fm/apparix/apparix_completion
new file mode 100644
index 0000000..ecf1826
--- /dev/null
+++ b/shell-term-fm/apparix/apparix_completion
@@ -0,0 +1,27 @@
+ # function to generate list of completions from .apparixrc
+ function _apparix_aliases ()
+ { cur=$2
+ dir=$3
+ COMPREPLY=()
+ if [ "$1" == "$3" ]
+ then
+ COMPREPLY=( $( cat $HOME/.apparix{rc,expand} | \
+ grep "j,.*$cur.*," | cut -f2 -d, ) )
+ else
+ dir=`apparix -favour lro $dir 2>/dev/null` || return 0
+ eval_compreply="COMPREPLY=( $(
+ cd "$dir"
+ \ls -d *$cur* | while read r
+ do
+ [[ -d "$r" ]] &&
+ [[ $r == *$cur* ]] &&
+ echo \"${r// /\\ }\"
+ done
+ ) )"
+ eval $eval_compreply
+ fi
+ return 0
+ }
+ # command to register the above to expand when the 'to' command's args
are
+ # being expanded
+ complete -F _apparix_aliases to



  • [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (4abccc30f38bcad99dc2cff1bf8fd67ea7a0f3a2), Jaka Kranjc, 04/15/2007

Archive powered by MHonArc 2.6.24.

Top of Page