implement opening by line number
This commit is contained in:
4
sxbm
4
sxbm
@ -141,6 +141,10 @@ bm_open(){
|
|||||||
local FORCE="1"
|
local FORCE="1"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
[0-9])
|
||||||
|
local LINK=$( awk "NR == $1 {print \$1}" $DATA_FILE )
|
||||||
|
shift
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
local LINK=$( bm_list "-c" "$@" | awk '{print $2}' )
|
local LINK=$( bm_list "-c" "$@" | awk '{print $2}' )
|
||||||
shift "$#"
|
shift "$#"
|
||||||
|
|||||||
Reference in New Issue
Block a user