Repository navigation
v0.9.0
-
index.causesays when another trekr was writing. An answer whose
edited files could not be read because another trekr held the store
saidstale: truewith nocause;causenow names those files and
why. -
A call inside a made name's
#{…}is that call. In
class_eval("def #{dir.upcase}_shout"), every letter ofupcase
answered the method the string makes (UP_shout), with full
confidence. A call or constant written inside such a name now answers
itself, as a variable there already did. -
Go to Definition in a file the index has not read uses its own
class. In an untracked file created after the last index (with no
file watcher to say so), a call inherited from the file's superclass
listed every method of that name;--defanswered the superclass's.
Opening a file now reads it as saving it does — one the index would
read, that is: opening or saving a file git ignores leaves the index
as it was. -
--gccollects what queries recorded. Each edited version of a file
a query read stayed in the store for good;--gcnow removes those no
checkout maps once they are older than--older-than(and than an hour,
so a query still reading one keeps it), and exits 0 when that is all it
removed. Blobs an--indexread or mapped are kept as before. -
A spec macro's or
store_accessor's method ends where its argument
does. The column just pastlet(:name),subject(:name)or
RSpec::Matchers.define :nameanswered that method, and
store_accessor :settings, :"key"placed each accessor with its own
name's length from the:— short of the closing quote forkey, far
past it forkey_changed?. Each now spans its symbol (or string) as
written, closing quote included. An association's generated methods
(dogs=,dog_idsfromhas_many :dogs) still reach past it. -
--refsby a constant's whole name lists the constant as its scopes
write it.--refs Admin::Widgetlisted only mentions written
Admin::Widget, missingWidgetinsidemodule Admin; on
SEPARATORS.joininsidemodule Routerit said "no mention of
Router::SEPARATORS"; and on a constant's definition (SIZES = …) it was a
usage error, exit 64. A name written with::now lists the definitions
and the references Ruby's lookup resolves to it through the scopes they
are written in, as the editor's Find References does, and a position on
any class, module or constant answers that way. A constant nothing
defines whole is named by the part that resolves:Nodes::Unioninside
module ArelisArel::Nodes::Union. By name, a path through an
includer, a subclass or an alias (Child::K) is not found; at the
mention it is. A top-level constant's whole name is::Widget; a bare
--refs Widgetstill lists every mention of the name. -
A
--refsmiss is said as a no. "no mention of X (indexed? try
trekr --index)" sent an agent to reindex a checkout already indexed;
it now reads "no mention of X in what trekr indexed", and for a name
written with::says it was read as a whole name from the top level. -
--defin arequirestring answers the file it loads. Anywhere in
require_relative "../../lib/helper",--defsnapped to
Kernel#require_relative, while Go to Definition openedlib/helper.rb.
Both now ask one subject: the file, at its top, withunder: requireand
resolved_via: requirein--json, and areasonwhen no file is found.
A gem's copy of a stdlib file (require "json","erb","uri") is
the one answered, as Ruby loads it; Go to Definition offered both. In a
monorepo, a file inside a path gem also searches that gem's owntest/
andspec/:require "cases/helper"in rails'activerecord/test
opensactiverecord/test/cases/helper.rb. -
--defon a method'sdefnames its Sorbet signature. Go to
Declaration from adefopened the.rbistub that describes it, while
--defthere answered only thedefitself. Its--jsonnow carries
signatures, as an answer on a call of the method does.